function simplenews_update_6008 in Simplenews 6
Same name and namespace in other branches
- 6.2 simplenews.install \simplenews_update_6008()
Make vocabulary required.
File
- ./
simplenews.install, line 591 - Simplenews installation.
Code
function simplenews_update_6008() {
$vocabulary = (array) taxonomy_vocabulary_load(variable_get('simplenews_vid', ''));
$vocabulary['required'] = TRUE;
taxonomy_save_vocabulary($vocabulary);
return array();
}