function asset_widget_menu in Asset 7
Implements hook_menu().
File
- modules/
asset_widget/ asset_widget.module, line 12 - Code for the Asset widget module.
Code
function asset_widget_menu() {
$items = array();
$items['ajax/asset-widget/get/tab'] = array(
'title' => 'Get tab content by ID',
'page callback' => 'asset_widget_get_tab_by_id',
// We'll get all interesting data in POST.
'page arguments' => array(),
'file' => 'asset_widget.admin.inc',
'access arguments' => array(
'access search widget',
),
'type' => MENU_CALLBACK,
'delivery callback' => 'ajax_deliver',
'theme callback' => 'ajax_base_page_theme',
);
$items['ajax/asset-widget/drop'] = array(
'title' => 'Drop asset to form field',
'page callback' => 'asset_widget_drop_get_label',
// We'll get all interesting data in POST.
'page arguments' => array(),
'file' => 'asset_widget.admin.inc',
'access arguments' => array(
'access search widget',
),
'type' => MENU_CALLBACK,
'delivery callback' => 'ajax_deliver',
'theme callback' => 'ajax_base_page_theme',
);
return $items;
}