function imageblock_menu in Image Block 7
Same name and namespace in other branches
- 6 imageblock.module \imageblock_menu()
Implements hook_menu().
File
- ./
imageblock.module, line 25 - imageblock.module Primarily Drupal hooks.
Code
function imageblock_menu() {
$items['admin/structure/block/imageblock_add'] = array(
'title' => 'Add image block',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'imageblock_add_block_form',
),
'access arguments' => array(
'administer blocks',
),
'file' => 'imageblock.admin.inc',
'type' => MENU_LOCAL_ACTION,
);
$items['admin/structure/block/imageblock_configure'] = array(
'title' => 'Image block settings',
'description' => 'Configure Image block settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'imageblock_admin_settings_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'imageblock.admin.inc',
);
$items['admin/structure/block/manage/imageblock/%/delete'] = array(
'title' => 'Delete block',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'imageblock_custom_block_delete',
5,
),
'access arguments' => array(
'administer blocks',
),
'type' => MENU_CALLBACK,
'file' => 'imageblock.admin.inc',
);
return $items;
}