function radioactivity_debug_menu in Radioactivity 6
File
- plugins/
radioactivity_debug.module, line 19 - Debugging support for radioactivity
Code
function radioactivity_debug_menu() {
$items = array();
$items['admin/debug/radioactivity'] = array(
'title' => 'Debug radioactivity',
'description' => 'Radioactivity debugging UI',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'radioactivity_debug_info_form',
),
'access arguments' => array(
RADIOACTIVITY_PERM_ADMIN,
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/debug/radioactivity/info'] = array(
'title' => 'Radioactivity info struct',
'description' => 'Debug view of radioactivity info struct as retrieved by ' . '<code>radioactivity_get_radioactivity_info()</code> and ' . '<code>radioactivity_get_decay_profiles()</code>.',
'page arguments' => array(
'radioactivity_debug_add_energy_form',
),
'access arguments' => array(
RADIOACTIVITY_PERM_ADMIN,
),
'weight' => 0,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/debug/radioactivity/add_energy'] = array(
'title' => 'Add energy',
'description' => 'Add energy to arbitrary radioactive object.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'radioactivity_debug_add_energy_form',
),
'access arguments' => array(
RADIOACTIVITY_PERM_ADMIN,
),
'weight' => 1,
'type' => MENU_LOCAL_TASK,
);
$items['admin/debug/radioactivity/memcache'] = array(
'title' => 'Memcache acceleration',
'description' => 'Show pending updates in memcache.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'radioactivity_debug_memcache_form',
),
'access arguments' => array(
RADIOACTIVITY_PERM_ADMIN,
),
'weight' => 1,
'type' => MENU_LOCAL_TASK,
);
return $items;
}