$form['lightbox2_misc_options']['lightbox2_disable_these_urls'] = array(
'#type' => 'textarea',
'#title' => t('Disable LightBox for these urls'),
- '#description' => t('List the urls where the lightbox should be disabled, e.g. \"node/add/page\". Put each url on a separate line. You can use the % character as a wildcard.'),
+ '#description' => t('List the urls where the lightbox should be disabled, e.g. \"node/add/page\". Use <front> to match the front page. Put each url on a separate line. You can use the % character as a wildcard.'),
'#default_value' => variable_get('lightbox2_disable_these_urls', ''),
);
foreach ($urls as $url) {
$url = rtrim($url);
+ if ($url == "<front>") {
+ $url = "";
+ }
$url = preg_replace("/%/", '.*?', preg_quote($url, '/'));
$pattern = "/^". $url ."$/";
if (preg_match($pattern, $_REQUEST['q'])) {