function _fe_taxonomy_save_vocabulary in Features Extra 6
Save a vocabulary.
Parameters
$settings:
Return value
array
2 calls to _fe_taxonomy_save_vocabulary()
- fe_taxonomy_vocabulary_features_rebuild in ./
fe_taxonomy.module - Implementation of hook_features_rebuild().
- fe_taxonomy_vocabulary_features_revert in ./
fe_taxonomy.module - Implementation of hook_features_revert().
File
- ./
fe_taxonomy.module, line 338
Code
function _fe_taxonomy_save_vocabulary($settings = array()) {
if (empty($settings['name'])) {
return FALSE;
}
// Defaults
$default_settings = array(
'description' => '',
'help' => '',
'relations' => 0,
'hierarchy' => 0,
'multiple' => 0,
'required' => 0,
'tags' => 0,
'module' => 'taxonomy',
'weight' => 0,
'nodes' => array(),
);
$settings = array_merge($default_settings, $settings);
// Save
taxonomy_save_vocabulary($settings);
return $settings;
}