function modal_entityform_menu in Modal operations 7
Implements hook_menu().
File
- modal_entityform/
modal_entityform.module, line 26 - Allows entityform submitting and editing in modal window.
Code
function modal_entityform_menu() {
$items['modal/entityform/%entityform_empty/%ctools_js'] = array(
'title' => 'Submit',
'page callback' => 'modal_entityform_page_submit',
'page arguments' => array(
2,
3,
),
'access callback' => TRUE,
'delivery callback' => 'ajax_deliver',
'type' => MENU_CALLBACK,
);
$items['modal/entityform/%entityform/edit/%ctools_js'] = array(
'title' => 'Edit',
'page callback' => 'modal_entityform_page_edit',
'page arguments' => array(
2,
4,
),
'access callback' => TRUE,
'delivery callback' => 'ajax_deliver',
'type' => MENU_CALLBACK,
);
return $items;
}