function hook_search_by_page_delete_environment in Search by Page 8
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_search_by_page_settings(), as the main module will take care of this.
Parameters
$environment: ID of environment being deleted.
2 functions implement hook_search_by_page_delete_environment()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- search_by_page_paths_search_by_page_delete_environment in search_by_page_paths/
search_by_page_paths.module - Implements hook_search_by_page_delete_environment().
- search_by_page_search_by_page_delete_environment in ./
search_by_page.module - Implements hook_search_by_page_delete_environment().
2 invocations of hook_search_by_page_delete_environment()
- SearchByPageTesterTest::setUpEnvironments in tests/
src/ Functional/ SearchByPageTesterTest.php - 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 217 - Search by Page module API.
Code
function hook_search_by_page_delete_environment($environment) {
// Delete entries in my module's table, etc.
}