function upload_element_menu in Upload element 6
Implementation of hook_menu().
File
- ./
upload_element.module, line 33 - A module that provides two new elements to the FAPI for file handling.
Code
function upload_element_menu() {
$items = array();
$items['upload_element'] = array(
'title' => t('Upload element preview'),
'file' => 'upload_element.pages.inc',
'type' => MENU_CALLBACK,
'access arguments' => array(
'access content',
),
'page callback' => 'image_upload_element_thumb',
'page arguments' => array(),
);
$items['upload_element_js/%/%/%'] = array(
'title' => t('AHAH Callback'),
'file' => 'upload_element.pages.inc',
'type' => MENU_CALLBACK,
'access arguments' => array(
'access content',
),
'page callback' => 'upload_element_js',
'page arguments' => array(
1,
2,
3,
),
);
return $items;
}