Login

Hook_menu() Implentation - Mapping our Request

function my_color_menu() {
    $items = array();
 
    $items['my_color/color_form'] = array(
        'title' => 'Vote for your favorite color?',
        'page callback' => 'drupal_get_form',
        'page arguments'=> array('color_form'),
        'access arguments' => array('access content'),
        'type' => MENU_CALLBACK | MENU_NORMAL_ITEM,
     );
 
     $items['my_color/color_maint'] = array(
        'title' => 'Our Favorite Colors',
        'page callback' => 'color_maint',      
        'access arguments' => array('access content'),
        'type' => MENU_CALLBACK,
     );
 
    return $items;
}