You are here

function oa_wizard_wizard_options in Open Atrium Wizard 7.2

Get all options for wizards, name => label.

1 call to oa_wizard_wizard_options()
oa_wizard_add_content_edit_form in plugins/content_types/oa_wizard_add_content.inc
Edit form for the panel.
1 string reference to 'oa_wizard_wizard_options'
oa_wizard_save in ./oa_wizard.module
Saves a wizard to the database.

File

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

Code

function oa_wizard_wizard_options($reset = FALSE) {
  $options =& drupal_static(__FUNCTION__);
  if ($reset || !isset($options)) {
    if (!$reset && ($cache = cache_get(__FUNCTION__))) {
      $options = $cache->data;
    }
    else {
      foreach (entity_load('oa_wizard') as $wizard) {
        $options[$wizard->name] = check_plain($wizard->title);
      }
      cache_set(__FUNCTION__, $options);
    }
  }
  return $options;
}