You are here

function slickgrid_install in Slickgrid 6

Same name and namespace in other branches
  1. 7.2 slickgrid.install \slickgrid_install()

Implementation of hook_install(). Installs the current version of the database schema.

File

./slickgrid.install, line 6

Code

function slickgrid_install() {

  // Set the module's weight high so that it runs after other modules.
  db_query("UPDATE {system} SET weight = 100 WHERE name = 'slickgrid' and type = 'module'");
  if (module_exists('lightbox2')) {

    // Set the module's weight higher than 100 so that it runs after slickgrid
    // We need to do this so we can set variables before lightbox adds its js files in hook_init()
    db_query("UPDATE {system} SET weight = 101 WHERE name = 'lightbox2' and type = 'module'");
  }

  // Create tables.
  drupal_install_schema('slickgrid');
}