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