function pagestyle_init in Page Style 7
Same name and namespace in other branches
- 5 pagestyle.module \pagestyle_init()
- 6 pagestyle.module \pagestyle_init()
Implement hook_init().
File
- ./
pagestyle.module, line 422 - Display a style changer on the page and in the browser menu for a better web accessibility.
Code
function pagestyle_init() {
if (function_exists('variable_get')) {
$pagestyle_javascript = variable_get('pagestyle_javascript', 1);
if ($pagestyle_javascript == 0 || $pagestyle_javascript == 1) {
pagestyle_check();
}
}
}