function pagestyle_cookie_expires in Page Style 5
Same name and namespace in other branches
- 6 includes/pagestyle.block.inc \pagestyle_cookie_expires()
- 7 includes/pagestyle.block.inc \pagestyle_cookie_expires()
Cookie expires.
Return value
The cookie expires in seconds.
8 calls to pagestyle_cookie_expires()
- pagestyle_black_white in includes/
pagestyle.block.inc - Menu callback; Set the pagestyle to Black/White, then redirects to the previous page.
- pagestyle_block in ./
pagestyle.module - Implement hook_block().
- pagestyle_form in includes/
pagestyle.block.inc - Implement hook_form().
- pagestyle_print_js_css in ./
pagestyle.module - Print Javascript and CSS in the head.
- pagestyle_set in includes/
pagestyle.block.inc - Menu callback; change the pagestyle to the cookie value, then redirects to the previous page.
3 string references to 'pagestyle_cookie_expires'
- pagestyle_admin_settings in includes/
pagestyle.admin.inc - Builds and returns the pagestyle settings form.
- pagestyle_admin_settings_validate in includes/
pagestyle.admin.inc - Validate the pagestyle settings form.
- pagestyle_uninstall in ./
pagestyle.install - Implement hook_uninstall().
File
- includes/
pagestyle.block.inc, line 30 - Block, page and theme functions.
Code
function pagestyle_cookie_expires($mode = 'php') {
$pagestyle_cookie_expires = variable_get('pagestyle_cookie_expires', 365);
$output = $pagestyle_cookie_expires * 24 * 60 * 60;
if ($mode == 'js') {
$output = $pagestyle_cookie_expires;
}
return $output;
}