search_restrict.install in Search Restrict 5
Same filename and directory in other branches
File
search_restrict.installView source
<?php
/**
* Implementation of hook_install().
*/
function search_restrict_install() {
// Set a low weight so the module is called before node module.
db_query("UPDATE {system} SET weight = -10 WHERE name = 'search_restrict'");
}
/**
* Implementation of hook_uninstall().
*/
function search_restrict_uninstall() {
variable_del('search_restrict_content_type');
}
Functions
Name![]() |
Description |
---|---|
search_restrict_install | Implementation of hook_install(). |
search_restrict_uninstall | Implementation of hook_uninstall(). |