function block_refresh_init in Block Refresh 6
Same name and namespace in other branches
- 7.2 block_refresh.module \block_refresh_init()
- 7 block_refresh.module \block_refresh_init()
Implementation of hook_init() Calls the jquery to refresh blocks automatically, but only if the blocks exist on the current page and are enabled
File
- ./
block_refresh.module, line 11
Code
function block_refresh_init() {
// If the contrib module jQ is not installed...
if (!module_invoke('jq', 'add', 'block_refresh')) {
drupal_add_js(drupal_get_path('module', 'block_refresh') . '/js/block_refresh.js');
drupal_add_css(drupal_get_path('module', 'block_refresh') . '/css/block_refresh.css');
}
}