You are here

function oa_wizard_machine_name_load in Open Atrium Wizard 7.2

Load a wizard entity based on their machine name.

Parameters

$name string:

3 calls to oa_wizard_machine_name_load()
oa_wizard_add_content_render in plugins/content_types/oa_wizard_add_content.inc
Render callback for the content visibility panel.
oa_wizard_get_steps in ./oa_wizard.module
Retrieve the wizard steps for a wizard.
oa_wizard_modal_callback in ./oa_wizard.module
Node add modal callback.

File

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

Code

function oa_wizard_machine_name_load($name) {
  $wizard_id = db_select('oa_wizard', 'b')
    ->fields('b', array(
    'wizard_id',
  ))
    ->condition('name', $name)
    ->execute()
    ->fetchField(0);
  return oa_wizard_load($wizard_id);
}