You are here

ds.install in Display Suite 6

Display suite install file.

File

ds.install
View source
<?php

/**
 * @file
 * Display suite install file.
 */

/**
 * Implementation of hook_uninstall().
 */
function ds_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'ds_%%'");
  cache_clear_all('variables', 'cache');
}

/**
 * Implementation of hook_update_N().
 *
 * We simply return an array here. We want the people to
 * run update.php because new theming functions got introduced.
 */
function ds_update_1() {
  return array();
}

/**
 * Implementation of hook_update_N().
 */
function ds_update_2() {

  // Enable the UI module, not everyone knows that the module UI
  // and core are separated now.
  module_enable(array(
    'ds_ui',
  ));
  return array();
}

/**
 * Implementation of hook_update_N().
 */
function ds_update_3() {

  // Needs menu rebuild.
  return array();
}

Functions

Namesort descending Description
ds_uninstall Implementation of hook_uninstall().
ds_update_1 Implementation of hook_update_N().
ds_update_2 Implementation of hook_update_N().
ds_update_3 Implementation of hook_update_N().