You are here

prepopulate.install in Prepopulate 6

Same filename and directory in other branches
  1. 5 prepopulate.install
  2. 6.2 prepopulate.install
  3. 7.2 prepopulate.install

Install file for the Prepopulate module to set weight for the module.

Originally written by ea. Farris <eafarris@gmail.com> Based on an idea from chx, from the conversation at http://www.drupal.org/node/27155.

File

prepopulate.install
View source
<?php

/**
 * @file
 * Install file for the Prepopulate module to set weight for the module.
 *
 * Originally written by ea. Farris <eafarris@gmail.com>
 * Based on an idea from chx, from the conversation at
 * http://www.drupal.org/node/27155.
 */

/**
 * Implementation of hook_install().
 */
function prepopulate_install() {
  $ret = array();

  // Ensure that prepopulate sinks to the bottom during hook calls
  // there should be a UI for this at some point.
  $ret[] = db_query("UPDATE {system} SET weight = 10 WHERE name = 'prepopulate'");
  return $ret;
}

Functions

Namesort descending Description
prepopulate_install Implementation of hook_install().