@@ -35,7 +35,13 @@
       if ($path != $_GET['q']) {
         $page_match = $page_match || drupal_match_path($_GET['q'], $pages);
       }
-
+      
+      // Allow other modules to control visibility
+      $hook_show=module_invoke_all('nivo_slide_visibility', $slide);
+      foreach ($hook_show as $value) {
+        $page_match &= $value;
+      }
+      
       // Add the slide if a match was found
       if ($page_match) {
         $visible_slides[] = $slide;
