function focal_point_menu in Focal Point 7
Implements hook_menu().
File
- ./
focal_point.module, line 15
Code
function focal_point_menu() {
$items = array();
$items['admin/config/media/focal_point'] = array(
'type' => MENU_NORMAL_ITEM,
'title' => 'Focal Point',
'description' => 'Configure how the Focal Point module behaves and take a test drive.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'focal_point_configuration_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'focal_point.admin.inc',
);
$items['focal_point/test-drive'] = array(
'type' => MENU_CALLBACK,
'title' => 'Focal Point Test Drive',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'focal_point_test_drive_form',
),
'access arguments' => array(
'preview focal point',
),
'file' => 'focal_point.admin.inc',
);
$items['focal_point/preview/%/%'] = array(
'type' => MENU_CALLBACK,
'title' => 'Image Preview',
'page callback' => 'focal_point_preview_page',
'page arguments' => array(
2,
3,
),
'access arguments' => array(
'preview focal point',
),
'file' => 'focal_point.admin.inc',
);
return $items;
}