You are here

jquery_update.install in jQuery Update 6

Install file for jQuery Update.

File

jquery_update.install
View source
<?php

/**
 * @file
 * Install file for jQuery Update.
 */

/**
 * Implementation of hook_requirements().
 */
function jquery_update_requirements($phase) {
  $requirements = array();
  $t = get_t();
  if ($phase == 'runtime') {
    $requirements['jquery_update'] = array(
      'title' => $t('jQuery Update'),
      'severity' => REQUIREMENT_OK,
      'value' => jquery_update_get_version(),
    );
  }
  return $requirements;
}

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

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

/**
 * Set module's weight high so that it runs after other modules.
 */
function jquery_update_update_6100() {
  $ret = array();
  $ret[] = update_sql("UPDATE {system} SET weight = 99 WHERE name = 'jquery_update' and type = 'module'");
  return $ret;
}

/**
 * Implementation of hook_uninstall().
 */
function jquery_update_uninstall() {
  variable_del('jquery_update_replace');
  variable_del('jquery_update_compression_type');
}

Functions

Namesort descending Description
jquery_update_install Implementation of hook_install().
jquery_update_requirements Implementation of hook_requirements().
jquery_update_uninstall Implementation of hook_uninstall().
jquery_update_update_6100 Set module's weight high so that it runs after other modules.