function global_filter_install in Views Global Filter 8
Same name and namespace in other branches
- 6 global_filter.install \global_filter_install()
- 7 global_filter.install \global_filter_install()
Implements hook_install().
Set the module weight a bit lower to make sure that certain modules can timely read our updated session filter data and act upon the new filter values, eg by denying access, before other modules continue processing the click.
File
- ./
global_filter.install, line 16 - Install and uninstall hooks for the Global Filter module.
Code
function global_filter_install() {
db_update('system')
->fields(array(
'weight' => -5,
))
->condition('name', 'global_filter')
->execute();
}