function itoggle_menu in iToggle 7
Same name and namespace in other branches
- 7.2 itoggle.module \itoggle_menu()
Implements hook_menu().
File
- ./
itoggle.module, line 45 - iToggle module.
Code
function itoggle_menu() {
$items = array();
// admin settings
$items['admin/config/itoggle'] = array(
'title' => 'iToggle',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'itoggle_form_admin',
),
'access arguments' => array(
'administer itoggle',
),
'file' => 'includes/itoggle.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
// itoggle js callback
$items['js/itoggle'] = array(
'page callback' => 'itoggle_ajax_callback',
'access callback' => 'user_access',
'access arguments' => array(
'use itoggle',
),
'type' => MENU_CALLBACK,
);
return $items;
}