You are here

function headerimage_menu in Header image 7

Same name and namespace in other branches
  1. 5 headerimage.module \headerimage_menu()
  2. 6 headerimage.module \headerimage_menu()

Implementation of hook_menu()

File

./headerimage.module, line 11
headerimage.module Conditionally display an node in a block.

Code

function headerimage_menu() {
  $items['admin/structure/headerimage'] = array(
    'title' => t('Header Image'),
    'description' => t('Control the Header Image.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'headerimage_settings_block_add',
    ),
    'access arguments' => array(
      'administer header image',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'headerimage.admin.inc',
  );
  $items['admin/structure/headerimage/list'] = array(
    'title' => t('List'),
    'page arguments' => array(
      'headerimage_settings_block_add',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/structure/headerimage/settings'] = array(
    'title' => t('Settings'),
    'page arguments' => array(
      'headerimage_settings_form',
    ),
    'access arguments' => array(
      'administer header image',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/structure/headerimage/edit/%'] = array(
    'title' => t('Edit Header Image block'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'headerimage_settings_block_edit',
      4,
    ),
    'access arguments' => array(
      'administer header image',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/structure/headerimage/delete/%'] = array(
    'title' => t('Delete Header Image block'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'headerimage_block_confirm_delete',
      4,
    ),
    'access arguments' => array(
      'administer header image',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'headerimage.admin.inc',
  );
  return $items;
}