function img_assist_menu in Image Assist 6
Same name and namespace in other branches
- 5.3 img_assist.module \img_assist_menu()
- 5 img_assist.module \img_assist_menu()
- 5.2 img_assist.module \img_assist_menu()
- 6.2 img_assist.module \img_assist_menu()
Implementation of hook_menu().
File
- ./
img_assist.module, line 52 - Image Assist module
Code
function img_assist_menu() {
$items = array();
$items['img_assist/cache/clear'] = array(
'title' => 'Empty cache',
'page callback' => 'img_assist_cache_clear',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
);
$items['img_assist/load'] = array(
'title' => 'Image assist',
'page callback' => 'img_assist_loader',
'access arguments' => array(
'access img_assist',
),
'type' => MENU_CALLBACK,
);
// Page callbacks called internally by img_assist/load.
$items['img_assist/header'] = array(
'title' => 'Image assist header',
'page callback' => 'img_assist_header',
'page arguments' => array(
2,
),
'access arguments' => array(
'access img_assist',
),
'type' => MENU_CALLBACK,
);
$items['img_assist/thumbs'] = array(
'title' => 'Image assist thumbnails',
'page callback' => 'img_assist_thumbs',
'access arguments' => array(
'access img_assist',
),
'type' => MENU_CALLBACK,
);
$items['img_assist/upload'] = array(
'title' => 'Image assist upload',
'page callback' => 'img_assist_upload',
'access arguments' => array(
'access img_assist',
),
'type' => MENU_CALLBACK,
);
$items['img_assist/properties'] = array(
'title' => 'Image assist properties',
'page callback' => 'img_assist_properties',
'access arguments' => array(
'access img_assist',
),
'type' => MENU_CALLBACK,
);
// Popup images page.
$items['img_assist/popup'] = array(
'title' => 'Popup image',
'page callback' => 'img_assist_popup',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
// Insert callback (only for inserting HTML, not filter tag).
$items['img_assist/insert_html'] = array(
'title' => 'Insert callback',
'page callback' => 'img_assist_insert_html',
'access arguments' => array(
'access img_assist',
),
'type' => MENU_CALLBACK,
);
$items['admin/settings/img_assist'] = array(
'title' => 'Image assist',
'description' => 'Change settings for the Image assist module.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'img_assist_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
);
return $items;
}