You are here

function oa_wizard_save in Open Atrium Wizard 7.2

Saves a wizard to the database.

Parameters

$wizard: The oa_wizard object.

2 calls to oa_wizard_save()
oa_wizard_entity_edit_form_submit in ./oa_wizard.module
Submit callback for the wizard entity.
oa_wizard_update_7101 in ./oa_wizard.install
Add the machine name as the content type.
1 string reference to 'oa_wizard_save'
oa_wizard_entity_info in ./oa_wizard.module
Implements hook_crud_hook_entity_info().

File

./oa_wizard.module, line 368
Code for the OpenAtrium Wizard.

Code

function oa_wizard_save($wizard) {
  $return = entity_save('oa_wizard', $wizard);
  cache_clear_all('oa_wizard_wizard_options', 'cache');
  drupal_static_reset('oa_wizard_wizard_options');
  return $return;
}