You are here

function imageblock_menu in Image Block 6

Same name and namespace in other branches
  1. 7 imageblock.module \imageblock_menu()

Implements hook_menu().

File

./imageblock.module, line 24
imageblock.module Primarily Drupal hooks.

Code

function imageblock_menu() {
  $items['admin/build/block/imageblockadd'] = array(
    'title' => 'Add image block',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imageblock_add_block_form',
    ),
    'access arguments' => array(
      'administer blocks',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/build/block/imageblockdelete/%'] = array(
    'title' => 'Delete image block',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imageblock_delete_block_form',
      4,
    ),
    'access arguments' => array(
      'administer blocks',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/imageblock'] = array(
    'title' => 'Image block',
    'description' => 'Configure Image block.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imageblock_admin_settings_form',
    ),
    'access arguments' => array(
      'administer site',
    ),
    'file' => 'imageblock.admin.inc',
  );
  return $items;
}