You are here

function splashify_menu in Splashify 6

Same name and namespace in other branches
  1. 7 splashify.module \splashify_menu()

Implements hook_menu().

File

./splashify.module, line 13

Code

function splashify_menu() {
  $items = array();

  // If they specify What: Enter Text or What: Text Full Screen, this is the
  // page that will come up.
  $items['splash'] = array(
    'title' => 'Splash',
    'page callback' => 'splashify_display_splashtext',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );

  // Define the admin area.
  $items['admin/settings/splashify'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'splashify_admin_when_form',
    ),
    'title' => 'Splashify',
    'description' => 'Configuration area for the Splashify system.',
    'file' => 'admin/splashify.admin.when.inc',
    'type' => MENU_NORMAL_ITEM,
    'access arguments' => array(
      'access splashify admin',
    ),
  );
  $items['admin/settings/splashify/when'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'splashify_admin_when_form',
    ),
    'title' => 'When',
    'file' => 'admin/splashify.admin.when.inc',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'access arguments' => array(
      'access splashify admin',
    ),
  );
  $items['admin/settings/splashify/where'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'splashify_admin_where_form',
    ),
    'title' => 'Where',
    'file' => 'admin/splashify.admin.where.inc',
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'access splashify admin',
    ),
  );
  $items['admin/settings/splashify/what'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'splashify_admin_what_form',
    ),
    'title' => 'What',
    'file' => 'admin/splashify.admin.what.inc',
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'access splashify admin',
    ),
  );
  $items['admin/settings/splashify/how'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'splashify_admin_how_form',
    ),
    'title' => 'How',
    'file' => 'admin/splashify.admin.how.inc',
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'access splashify admin',
    ),
  );
  return $items;
}