function hook_sbp_delete_environment in Search by Page 6
Same name and namespace in other branches
- 7 search_by_page.api.php \hook_sbp_delete_environment()
Respond to search environment deletion.
Implement this hook if your sub-module needs to respond to the deletion of a Search by Page search environment. You do not need to clear settings saved with search_by_page_setting_set() or defined in hook_sbp_settings(), as the main module will take care of this.
Parameters
$environment: ID of environment being deleted.
2 functions implement hook_sbp_delete_environment()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- sbp_paths_sbp_delete_environment in ./
sbp_paths.module - Implementation of hook_sbp_delete_environment().
- search_by_page_sbp_delete_environment in ./
search_by_page.module - Implementation of hook_sbp_delete_environment().
2 invocations of hook_sbp_delete_environment()
- SearchByPageTester::setUpEnvironments in tests/
search_by_page.test - Creates two environments for Search by Page.
- search_by_page_delete_confirm_submit in ./
search_by_page.module - Submit callback for search_by_page_delete_confirm().
File
- ./
search_by_page.api.php, line 214 - Search by Page module API.
Code
function hook_sbp_delete_environment($environment) {
// Delete entries in my module's table, etc.
}