Now all modules are in core modules folder
This commit is contained in:
parent
5ba1cdfa0b
commit
05b6a91b0c
1907 changed files with 0 additions and 0 deletions
26
modules/extlink/extlink.install
Normal file
26
modules/extlink/extlink.install
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?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;
|
||||
}
|
Reference in a new issue