You are here

function panelizer_install in Panelizer 7

Same name and namespace in other branches
  1. 6 panelizer.install \panelizer_install()
  2. 7.3 panelizer.install \panelizer_install()
  3. 7.2 panelizer.install \panelizer_install()

Implements hook_install().

File

./panelizer.install, line 170
Install, update and uninstall functions for the panelizer module.

Code

function panelizer_install() {

  // TODO Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("UPDATE {system} SET weight = 21 WHERE name = 'panelizer'") */

  // Set the module weight so it can execute after Panels.
  db_update('system')
    ->fields(array(
    'weight' => 21,
  ))
    ->condition('name', 'panelizer')
    ->execute();
}