You are here

prepopulate.install in Prepopulate 5

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

File

prepopulate.install
View source
<?php

/* install file for prepopulate module */

/**
 * Implementation of hook_install().
 */
function prepopulate_install() {

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

  // endswitch (not used currently) on dbtype
}

// endfunction prepopulate_install

Functions

Namesort descending Description
prepopulate_install Implementation of hook_install().