active_tags_popular.install in Active Tags 6
Same filename and directory in other branches
Install & uninstall functions.
File
active_tags_popular.installView source
<?php
/**
* @file
* Install & uninstall functions.
*/
/**
* Implementation of hook_install().
*/
function active_tags_popular_install() {
// Increase module weight to prevent compatibility issues.
$sql = "UPDATE {system}\n SET weight = 10\n WHERE name = 'active_tags_popular'";
db_query($sql);
}
/**
* Implementation of hook_uninstall().
*/
function active_tags_popular_uninstall() {
// Delete settings from varible table.
$sql = "DELETE FROM {variable}\n WHERE name LIKE 'active_tags_popular%'";
db_query($sql);
}
/**
* Update from 1.8 to 1.9.
*/
function active_tags_popular_update_6101() {
$ret = array();
$sql = "UPDATE {system}\n SET weight = 10\n WHERE name = 'active_tags_popular'";
$ret[] = update_sql($sql);
return $ret;
}
Functions
Name![]() |
Description |
---|---|
active_tags_popular_install | Implementation of hook_install(). |
active_tags_popular_uninstall | Implementation of hook_uninstall(). |
active_tags_popular_update_6101 | Update from 1.8 to 1.9. |