You are here

function simplenews_update_6008 in Simplenews 6.2

Same name and namespace in other branches
  1. 6 simplenews.install \simplenews_update_6008()

Make vocabulary required.

File

./simplenews.install, line 701
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();
}