You are here

function tac_lite_update_3 in Taxonomy Access Control Lite 7

Same name and namespace in other branches
  1. 5 tac_lite.install \tac_lite_update_3()
  2. 6 tac_lite.install \tac_lite_update_3()

Introducing schemes. Rename tac_lite_default_grants to tac_lite_grants_scheme_1.

File

./tac_lite.install, line 66
Installation functions for tac_lite. TODO: All updates need proper error handling and responses

Code

function tac_lite_update_3() {
  $num_updated = db_update('variable')
    ->fields(array(
    'name' => 'tac_lite_grants_scheme_1',
  ))
    ->condition('name', 'tac_lite_default_grants')
    ->execute();
}