function iconizer_is_page_enabled in Iconizer 7
Same name and namespace in other branches
- 6 iconizer.module \iconizer_is_page_enabled()
1 call to iconizer_is_page_enabled()
- _iconizer_add_css in ./
iconizer.module - Add CSS function
File
- ./
iconizer.module, line 111 - @author: thePanz ( thePanz@gmail.com )
Code
function iconizer_is_page_enabled($pages, $visibility) {
$page_match = TRUE;
// Match path if necessary
if ($pages) {
if ($visibility < 2) {
$path = drupal_get_path_alias($_GET['q']);
// Compare with the internal and path alias (if any).
$page_match = drupal_match_path($path, $pages);
if ($path != $_GET['q']) {
$page_match = $page_match || drupal_match_path($_GET['q'], $pages);
}
// When $block->visibility has a value of 0, the block is displayed on
// all pages except those listed in $block->pages. When set to 1, it
// is displayed only on those pages listed in $block->pages.
$page_match = !($visibility xor $page_match);
}
// else {
// $page_match = drupal_eval($pages);
// }
}
return $page_match;
}