You are here

javascript_aggregator.install in Javascript Aggregator 6

Same filename and directory in other branches
  1. 5 javascript_aggregator.install

Install, update and uninstall functions for the javascript_aggregator module.

File

javascript_aggregator.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the javascript_aggregator module.
 */

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

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

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

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

/**
* Implementation of hook_uninstall().
*/
function javascript_aggregator_uninstall() {
  $htaccess = file_directory_path() . '/js/.htaccess';
  file_delete($htaccess);
  variable_del('javascript_aggregator_gzip');
  variable_del('javascript_aggregator_no_htaccess');
  variable_del('javascript_aggregator_jsminplus');
  cache_clear_all();
}

Functions

Namesort descending Description
javascript_aggregator_install Implementation of hook_install().
javascript_aggregator_uninstall Implementation of hook_uninstall().
javascript_aggregator_update_6120 Set module's weight high so that it runs after other modules.
javascript_aggregator_update_6150 Set module's weight high so that it runs after other modules.