You are here

function advagg_install in Advanced CSS/JS Aggregation 7

Same name and namespace in other branches
  1. 8.4 advagg.install \advagg_install()
  2. 8.2 advagg.install \advagg_install()
  3. 8.3 advagg.install \advagg_install()
  4. 6 advagg.install \advagg_install()
  5. 7.2 advagg.install \advagg_install()

Implements hook_install().

File

./advagg.install, line 50
Handles Advanced Aggregation installation and upgrade tasks.

Code

function advagg_install() {

  // Make sure we run last.
  // @TODO: Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("UPDATE {system} SET weight = 250 WHERE name = 'advagg'") */
  db_update('system')
    ->fields(array(
    'weight' => 250,
  ))
    ->condition('name', 'advagg')
    ->execute();
}