function oa_wizard_entities_add_page in Open Atrium Wizard 7.2
Page callback to add a new pane entity.
1 string reference to 'oa_wizard_entities_add_page'
- oa_wizard_menu in ./
oa_wizard.module - Implements hook_menu().
File
- ./
oa_wizard.admin.inc, line 66 - Admin form for the Wizards.
Code
function oa_wizard_entities_add_page($type) {
$form_state = array(
'entity' => oa_wizard_create(array(
'bundle' => $type,
)),
'add submit' => TRUE,
);
// Default these to reusable.
$form_state['entity']->reusable = TRUE;
return drupal_build_form('oa_wizard_entity_edit_form', $form_state);
}