function _thickbox_active in Thickbox 6
Check if Thickbox should be active for the current URL.
Return value
TRUE if Thickbox should be active for the current page.
1 call to _thickbox_active()
- _thickbox_doheader in ./
thickbox.module - Loads the various js and css files.
File
- ./
thickbox.module, line 80 - Author: Fredrik Jonsson fredrik at combonet dot se The thickbox module is a simple wrapper for the jquery plugin ThickBox http://jquery.com/demo/thickbox/.
Code
function _thickbox_active() {
// Code from the block_list funtion in block.module.
$path = drupal_get_path_alias($_GET['q']);
$thickbox_pages = variable_get('thickbox_pages', "admin*\nimg_assist*\nimce*\nnode/add/*\nnode/*/edit");
// Compare with the internal and path alias (if any).
$page_match = drupal_match_path($path, $thickbox_pages);
if ($path != $_GET['q']) {
$page_match = $page_match || drupal_match_path($_GET['q'], $thickbox_pages);
}
return !$page_match;
}