function image_attach_menu in Image 6
Same name and namespace in other branches
- 5.2 contrib/image_attach/image_attach.module \image_attach_menu()
- 5 contrib/image_attach/image_attach.module \image_attach_menu()
Implementation of hook_menu()
File
- contrib/
image_attach/ image_attach.module, line 12 - image_attach.module
Code
function image_attach_menu() {
$items['image_attach'] = array(
'title' => 'Image attachment view',
'page callback' => 'image_attach_view_image',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/image/image_attach'] = array(
'title' => 'Image attach',
'description' => 'Enable image attach for content.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'image_attach_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}