custom_search_taxonomy.install in Custom Search 7
Same filename and directory in other branches
Install, update, and uninstall functions for the custom search module.
File
modules/custom_search_taxonomy/custom_search_taxonomy.installView source
<?php
/**
* @file
* Install, update, and uninstall functions for the custom search module.
*/
/**
* Implements hook_install().
*/
function custom_search_taxonomy_install() {
db_update('system')
->fields(array(
'weight' => 101,
))
->condition('name', 'custom_search_taxonomy')
->execute();
}
/**
* Implements hook_uninstall().
*/
function custom_search_taxonomy_uninstall() {
db_delete('variable')
->condition('name', 'custom_search_voc%', 'LIKE')
->execute();
db_delete('variable')
->condition('name', 'custom_search_taxonomy%', 'LIKE')
->execute();
db_delete('variable')
->condition('name', 'custom_search_blocks_%_voc%', 'LIKE')
->execute();
db_delete('variable')
->condition('name', 'custom_search_blocks_%_taxonomy%', 'LIKE')
->execute();
}
Functions
Name | Description |
---|---|
custom_search_taxonomy_install | Implements hook_install(). |
custom_search_taxonomy_uninstall | Implements hook_uninstall(). |