You are here

extlink.install in External Links 6

Same filename and directory in other branches
  1. 8 extlink.install
  2. 7 extlink.install

File

extlink.install
View source
<?php

/**
 * Implements hook_install().
 */
function extlink_install() {

  // Weight needs to be 1 for compatibility with SpamSpan.
  db_query("UPDATE {system} SET weight = 1 WHERE name = 'extlink'");
}

/**
 * Implements hook_uninstall().
 */
function extlink_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'extlink_%'");
  cache_clear_all('variables', 'cache');
}

/**
 * Set the weight of the module to 1 for compatibility with SpamSpan.
 */
function extlink_update_6100() {
  $ret = array();
  $ret[] = update_sql("UPDATE {system} SET weight = 1 WHERE name = 'extlink'");
  return $ret;
}

Functions

Namesort descending Description
extlink_install Implements hook_install().
extlink_uninstall Implements hook_uninstall().
extlink_update_6100 Set the weight of the module to 1 for compatibility with SpamSpan.