You are here

function oa_wizard_type_load in Open Atrium Wizard 7.2

Properly format the type from the URL version to the internal version.

File

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

Code

function oa_wizard_type_load($type) {
  $type = str_replace('-', '_', $type);
  $entity_info = entity_get_info('oa_wizard');
  if (isset($entity_info['bundles'][$type])) {
    return $type;
  }
}