function farm_dashboard_menu in farmOS 7
Implements hook_menu().
File
- modules/
farm/ farm_dashboard/ farm_dashboard.module, line 44 - Farm dashboard module.
Code
function farm_dashboard_menu() {
$items['farm'] = array(
'title' => 'Farm',
'page callback' => 'farm_dashboard_page_callback',
'access arguments' => array(
'access farm dashboard',
),
'type' => MENU_CALLBACK,
);
$items['farm/dashboard'] = array(
'title' => 'Dashboard',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -100,
);
// Root farm configuration path.
$items['admin/config/farm'] = array(
'title' => 'Farm',
'description' => 'Configure settings for your farm.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access administration pages',
),
'type' => MENU_NORMAL_ITEM,
'file path' => drupal_get_path('module', 'system'),
'file' => 'system.admin.inc',
);
return $items;
}