You are here

function radioactivity_menu in Radioactivity 6

Same name and namespace in other branches
  1. 5 radioactivity.module \radioactivity_menu()
  2. 7.2 radioactivity.module \radioactivity_menu()
  3. 7 radioactivity.module \radioactivity_menu()

File

./radioactivity.module, line 26

Code

function radioactivity_menu() {
  $items = array();
  $items['admin/settings/radioactivity'] = array(
    'title' => 'Radioactivity',
    'description' => 'Configure settings for radioactivity.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'radioactivity_admin_general_form',
    ),
    'access arguments' => array(
      RADIOACTIVITY_PERM_ADMIN,
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'radioactivity-admin-ui.inc',
  );
  $items['admin/settings/radioactivity/general'] = array(
    'title' => 'General',
    'description' => 'Configure settings for radioactivity.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'radioactivity_admin_general_form',
    ),
    'access arguments' => array(
      RADIOACTIVITY_PERM_ADMIN,
    ),
    'weight' => 0,
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file' => 'radioactivity-admin-ui.inc',
  );
  $items['admin/settings/radioactivity/list_profiles'] = array(
    'title' => 'Decay profiles',
    'description' => 'List of decay profiles.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'radioactivity_admin_profile_list',
    ),
    'access arguments' => array(
      RADIOACTIVITY_PERM_ADMIN,
    ),
    'weight' => 1,
    'type' => MENU_LOCAL_TASK,
    'file' => 'radioactivity-admin-ui.inc',
  );
  $items['admin/settings/radioactivity/profile_new'] = array(
    'title' => 'New profile',
    'description' => 'Add new decay profile.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'radioactivity_admin_profile_form',
      '-1',
    ),
    'access arguments' => array(
      RADIOACTIVITY_PERM_ADMIN,
    ),
    'weight' => 2,
    'type' => MENU_LOCAL_TASK,
    'file' => 'radioactivity-admin-ui.inc',
  );
  $items['admin/settings/radioactivity/edit_profile/%'] = array(
    'title' => 'Edit decay profile',
    'description' => 'Configure settings for decay profile',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'radioactivity_admin_profile_form',
      4,
    ),
    'access arguments' => array(
      RADIOACTIVITY_PERM_ADMIN,
    ),
    'weight' => 3,
    'type' => MENU_CALLBACK,
    'file' => 'radioactivity-admin-ui.inc',
  );
  $items['admin/settings/radioactivity/delete_profile/%'] = array(
    'title' => 'Delete profile',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'radioactivity_admin_delete_profile_form',
      4,
    ),
    'access arguments' => array(
      RADIOACTIVITY_PERM_ADMIN,
    ),
    'type' => MENU_CALLBACK,
    'file' => 'radioactivity-admin-ui.inc',
  );
  return $items;
}