function heartbeat_ui_menu in Heartbeat 7
Implements hook_menu(). TODO Fix admin/structure/heartbeat/cache-clear
File
- modules/
heartbeat_ui/ heartbeat_ui.module, line 17
Code
function heartbeat_ui_menu() {
$items = array();
// Build menu
$items['admin/structure/heartbeat'] = array(
'title' => 'Heartbeat',
'description' => 'Administer heartbeat.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'admin heartbeat configure',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
// Administer settings
$items['admin/structure/heartbeat/settings'] = array(
'title' => 'Heartbeat settings',
'description' => 'Administer settings for heartbeat.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'heartbeat_admin_settings',
),
'access arguments' => array(
'admin heartbeat configure',
),
'file' => 'heartbeat_ui.admin.inc',
'weight' => 1,
);
$items['admin/structure/heartbeat/cache-clear'] = array(
'title' => 'Delete all activity logs',
'description' => 'Delete all heartbeat activity logs.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'heartbeat_activity_delete_all_confirm',
),
'access arguments' => array(
'admin heartbeat delete all',
),
'file' => 'heartbeat_ui.admin.inc',
'weight' => 2,
);
return $items;
}