function amazons3_menu in AmazonS3 7.2
Same name and namespace in other branches
- 7 amazons3.module \amazons3_menu()
Implements hook_menu().
File
- ./
amazons3.module, line 75 - Hook implementations for the AmazonS3 module.
Code
function amazons3_menu() {
$items = array();
$items['admin/config/media/amazons3'] = array(
'title' => 'Amazon S3',
'description' => 'Configure S3 credentials and settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'amazons3_admin',
),
'access arguments' => array(
'administer amazons3',
),
'file' => 'amazons3.admin.inc',
);
// hook_menu is called after this module is enabled, but before Composer
// dependencies are enabled. This menu callback string should always match
// \Drupal\amazons3\StreamWrapper::stylesCallback.
$items['amazons3/image-derivative'] = array(
'title' => 'Image style delivery callback',
'description' => 'Callback to generate an image derivative, upload it to S3, and redirect to the S3 URL',
'page callback' => 'amazons3_image_deliver',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
return $items;
}