You are here

function workbench_access_update_7000 in Workbench Access 7

Allow for multiple term selection.

NOTE: This update only affects sites on the pre-drupal.org release.

File

./workbench_access.install, line 233
Install file for Workbench Access.

Code

function workbench_access_update_7000() {
  $taxonomy = variable_get('workbench_access_taxonomy', 0);
  if (!is_array($taxonomy)) {
    if (empty($taxonomy)) {
      variable_set('workbench_access_taxonomy', array());
    }
    else {
      variable_set('workbench_access_taxonomy', array(
        $taxonomy,
      ));
    }
  }
  return t('Access rules have been corrected.');
}