function oa_wizard_update_7101 in Open Atrium Wizard 7.2
Add the machine name as the content type.
File
- ./
oa_wizard.install, line 92 - Sets up the base table for our entity and a table to store information about the entity types.
Code
function oa_wizard_update_7101() {
foreach (entity_load('oa_wizard') as $wizard) {
if (empty($wizard->field_wizard_type)) {
$wizard->field_wizard_type[LANGUAGE_NONE][0]['value'] = $wizard->name;
oa_wizard_save($wizard);
}
}
}