function pack_upload_menu in Pack & Upload 7
Same name and namespace in other branches
- 8 pack_upload.module \pack_upload_menu()
- 2.0.x pack_upload.module \pack_upload_menu()
Implements hook_menu().
File
- ./
pack_upload.module, line 42 - This is the module file for pack and upload.
Code
function pack_upload_menu() {
$items['admin/config/pack-upload'] = array(
'title' => 'Pack & Upload',
'description' => 'Pack your media & assets, upload them and extract to a specified directory.',
'access arguments' => array(
'pack and upload',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pack_upload_settings_form',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/pack-upload/settings'] = array(
'title' => 'Settings',
'description' => 'Setup directory name for extraction of media & assets pack. ',
'access arguments' => array(
'pack and upload',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pack_upload_settings_form',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/pack-upload/bulk-media-upload'] = array(
'title' => 'Upload bulk media',
'description' => 'Upload bulk media to a directory.',
'access arguments' => array(
'pack and upload',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pack_upload_media_upload_form',
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}