function scald_update_7011 in Scald: Media Management made easy 7
Update the vocabulary variables to point toward the machine names.
File
- ./
scald.install, line 641
Code
function scald_update_7011() {
foreach (array(
'scald_author_vocabulary',
'scald_tags_vocabulary',
) as $variable) {
$vid = variable_get($variable);
$vocabulary = taxonomy_vocabulary_load($vid);
if ($vocabulary) {
variable_set($variable, $vocabulary->machine_name);
}
}
}