function om_tools_menu in OM Tools 6.2
Same name and namespace in other branches
- 8.2 om_tools.module \om_tools_menu()
- 8 om_tools.module \om_tools_menu()
- 6 om_tools.module \om_tools_menu()
- 7.2 om_tools.module \om_tools_menu()
- 7 om_tools.module \om_tools_menu()
Implementation of hook_menu().
File
- ./
om_tools.module, line 24 - This is a collection of OM Tools.
Code
function om_tools_menu() {
$tools = om_tools_get();
$items = array();
$items['admin/settings/om-tools'] = array(
'title' => t('OM Tools'),
'page callback' => 'drupal_get_form',
'access callback' => 'user_access',
'access arguments' => array(
'administer OM Tools',
),
'page arguments' => array(
'om_tools_admin',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'inc/om_tools.admin.inc',
);
$items['admin/settings/om-tools/settings'] = array(
'title' => t('Settings'),
'page callback' => 'drupal_get_form',
'access callback' => 'user_access',
'access arguments' => array(
'administer OM Tools',
),
'page arguments' => array(
'om_tools_admin',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'inc/om_tools.admin.inc',
'weight' => 0,
);
$items['admin/settings/om-tools/advanced-editing'] = array(
'title' => t('Advanced Editing'),
'page callback' => 'drupal_get_form',
'access callback' => 'user_access',
'access arguments' => array(
'administer OM Tools',
),
'page arguments' => array(
'om_tools_admin_advanced',
'om_tools',
'OM Tools 2',
),
'type' => MENU_LOCAL_TASK,
'file' => 'inc/om_tools.admin.inc',
'weight' => 1,
);
if (in_array('user', $tools)) {
$items['user/login-register'] = array(
'title' => t(''),
'page callback' => 'user_login_register',
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'tools/user/user.inc',
);
}
return $items;
}