function ocupload_menu in One Click Upload 7.2
Same name and namespace in other branches
- 7 ocupload.module \ocupload_menu()
Implements hook_menu().
File
- ./
ocupload.module, line 6
Code
function ocupload_menu() {
$items = array();
$items['admin/config/content/ocupload'] = array(
'title' => 'One click upload',
'description' => 'Configure module',
'page callback' => 'ocupload_config_page',
'access arguments' => array(
'administer site configuration',
),
'file' => 'ocupload.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/content/ocupload/add'] = array(
'title' => 'Add template',
'description' => 'Add template form',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'ocupload_form_template',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'ocupload.inc',
'type' => MENU_LOCAL_ACTION,
);
$items['admin/config/content/ocupload/edit/%ocupload_template'] = array(
'title' => 'Edit template',
'description' => 'Edit template form',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'ocupload_form_template',
5,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'ocupload.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/content/ocupload/delete/%ocupload_template'] = array(
'title' => 'Delete template',
'description' => 'Delete template confirm form',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'ocupload_delete_confirm',
5,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'ocupload.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['ocupload/upload'] = array(
'title' => 'Upload file',
'page callback' => 'ocupload_upload',
'access callback' => TRUE,
'file' => 'ocupload.inc',
'type' => MENU_CALLBACK,
);
return $items;
}