You are here

override_node_options.install in Override Node Options 8

Install, update and uninstall functions for the override_node_options module.

File

override_node_options.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the override_node_options module.
 */

/**
 * Implements hook_install().
 */
function override_node_options_install() {
  db_update('system')
    ->fields(array(
    'weight' => -1,
  ))
    ->condition('name', 'override_node_options', '=')
    ->execute();
}

/**
 * Implements hook_uninstall().
 */
function override_node_options_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'override_node_options_%'");
}

/**
 * Implements hook_update_N().
 */
function override_node_options_update_7113() {
  db_update('system')
    ->fields(array(
    'weight' => -1,
  ))
    ->condition('name', 'override_node_options', '=')
    ->execute();
}