function oa_export_verify_blueprint in Open Atrium Export 7.2
Verify that the specified blueprint taxonomy term can be exported.
Parameters
$blueprint: Fully loaded taxonomy term
2 calls to oa_export_verify_blueprint()
- oa_export_batch_export in batch/
oa_export.batch.export.inc - Prepare the export and create a batch process.
- oa_export_generate_module_form in module/
oa_export.module.export.inc - Form used to export a blueprint to a module.
File
- ./
oa_export.module, line 294
Code
function oa_export_verify_blueprint($blueprint) {
$wrapper = entity_metadata_wrapper('taxonomy_term', $blueprint);
$export_enabled = $wrapper->field_oa_clone_enabled
->value();
if (!$export_enabled) {
drupal_set_message(t('Can only export terms that clone a specific space.'), 'error');
oa_export_cleanup(NULL, OA_EXPORT_REDIRECT);
}
}