You are here

function radioactivity_menu in Radioactivity 7

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

Implementation of hook_menu

File

./radioactivity.module, line 46

Code

function radioactivity_menu() {
  $items = array();
  $items[RADIOACTIVITY_UI_PATH] = array(
    'title' => 'Radioactivity',
    'description' => 'Configure settings for radioactivity.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'radioactivity_admin_general_form',
    ),
    'access arguments' => array(
      'administer radioactivity',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'radioactivity-admin-ui.inc',
  );

  // Bind the path given in the R settings to the callback
  $path = variable_get("radioactivity_ajax_callback_path", RADIOACTIVITY_AJAX_PATH);
  $items[$path] = array(
    'page callback' => 'radioactivity_ajax_callback',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'access content',
    ),
  );
  return $items;
}