summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lightbox2.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 689b532..744ac96 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -203,7 +203,7 @@ function lightbox2_settings_form() {
$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', ''),
);
@@ -390,6 +390,9 @@ function lightbox2_exclude_these_paths() {
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'])) {