Created
October 24, 2013 08:53
-
-
Save ienliven/7133567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/modules/custom/high_school_blocks/high_school_blocks.module b/src/modules/custom/high_school_blocks/high_school_blocks.module | |
index 82399b2..f47a4a0 100644 | |
--- a/src/modules/custom/high_school_blocks/high_school_blocks.module | |
+++ b/src/modules/custom/high_school_blocks/high_school_blocks.module | |
@@ -23,7 +23,14 @@ function high_school_blocks_menu() { | |
* Page callback. | |
*/ | |
function high_school() { | |
- return ''; | |
+ /** | |
+ * SL-1285 | |
+ * Crude check for unnecessary page arguments -____- | |
+ */ | |
+ if(count(func_get_args())) | |
+ drupal_not_found(); | |
+ else | |
+ return ''; | |
} | |
/** | |
diff --git a/src/modules/custom/higher_ed_blocks/higher_ed_blocks.module b/src/modules/custom/higher_ed_blocks/higher_ed_blocks.module | |
index 727341d..9a3a4fe 100644 | |
--- a/src/modules/custom/higher_ed_blocks/higher_ed_blocks.module | |
+++ b/src/modules/custom/higher_ed_blocks/higher_ed_blocks.module | |
@@ -23,7 +23,14 @@ function higher_ed_blocks_menu() { | |
* Page callback. | |
*/ | |
function higher_ed() { | |
- return ''; | |
+ /** | |
+ * SL-1285 | |
+ * Crude check for unnecessary page arguments -____- | |
+ */ | |
+ if(count(func_get_args())) | |
+ drupal_not_found(); | |
+ else | |
+ return ''; | |
} | |
/** | |
diff --git a/src/modules/features/sl_help/sl_help.views_default.inc b/src/modules/features/sl_help/sl_help.views_default.inc | |
index e7fe58e..199dae8 100644 | |
--- a/src/modules/features/sl_help/sl_help.views_default.inc | |
+++ b/src/modules/features/sl_help/sl_help.views_default.inc | |
@@ -54,6 +54,16 @@ function sl_help_views_default_views() { | |
$handler->display->display_options['sorts']['created']['table'] = 'node'; | |
$handler->display->display_options['sorts']['created']['field'] = 'created'; | |
$handler->display->display_options['sorts']['created']['order'] = 'DESC'; | |
+ /* Contextual filter: Global: Null */ | |
+ $handler->display->display_options['arguments']['null']['id'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['table'] = 'views'; | |
+ $handler->display->display_options['arguments']['null']['field'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['default_argument_type'] = 'fixed'; | |
+ $handler->display->display_options['arguments']['null']['summary']['number_of_records'] = '0'; | |
+ $handler->display->display_options['arguments']['null']['summary']['format'] = 'default_summary'; | |
+ $handler->display->display_options['arguments']['null']['summary_options']['items_per_page'] = '25'; | |
+ $handler->display->display_options['arguments']['null']['specify_validation'] = TRUE; | |
+ $handler->display->display_options['arguments']['null']['must_not_be'] = TRUE; | |
/* Filter criterion: Content: Published */ | |
$handler->display->display_options['filters']['status']['id'] = 'status'; | |
$handler->display->display_options['filters']['status']['table'] = 'node'; | |
@@ -124,6 +134,16 @@ function sl_help_views_default_views() { | |
$handler->display->display_options['defaults']['title'] = FALSE; | |
$handler->display->display_options['title'] = 'Higher Education United States'; | |
$handler->display->display_options['defaults']['arguments'] = FALSE; | |
+ /* Contextual filter: Global: Null */ | |
+ $handler->display->display_options['arguments']['null']['id'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['table'] = 'views'; | |
+ $handler->display->display_options['arguments']['null']['field'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['default_argument_type'] = 'fixed'; | |
+ $handler->display->display_options['arguments']['null']['summary']['number_of_records'] = '0'; | |
+ $handler->display->display_options['arguments']['null']['summary']['format'] = 'default_summary'; | |
+ $handler->display->display_options['arguments']['null']['summary_options']['items_per_page'] = '25'; | |
+ $handler->display->display_options['arguments']['null']['specify_validation'] = TRUE; | |
+ $handler->display->display_options['arguments']['null']['must_not_be'] = TRUE; | |
$handler->display->display_options['defaults']['filter_groups'] = FALSE; | |
$handler->display->display_options['defaults']['filters'] = FALSE; | |
/* Filter criterion: Content: Published */ | |
@@ -161,6 +181,16 @@ function sl_help_views_default_views() { | |
$handler->display->display_options['defaults']['title'] = FALSE; | |
$handler->display->display_options['title'] = 'Higher Education Canada'; | |
$handler->display->display_options['defaults']['arguments'] = FALSE; | |
+ /* Contextual filter: Global: Null */ | |
+ $handler->display->display_options['arguments']['null']['id'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['table'] = 'views'; | |
+ $handler->display->display_options['arguments']['null']['field'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['default_argument_type'] = 'fixed'; | |
+ $handler->display->display_options['arguments']['null']['summary']['number_of_records'] = '0'; | |
+ $handler->display->display_options['arguments']['null']['summary']['format'] = 'default_summary'; | |
+ $handler->display->display_options['arguments']['null']['summary_options']['items_per_page'] = '25'; | |
+ $handler->display->display_options['arguments']['null']['specify_validation'] = TRUE; | |
+ $handler->display->display_options['arguments']['null']['must_not_be'] = TRUE; | |
$handler->display->display_options['defaults']['filter_groups'] = FALSE; | |
$handler->display->display_options['defaults']['filters'] = FALSE; | |
/* Filter criterion: Content: Published */ | |
@@ -198,6 +228,16 @@ function sl_help_views_default_views() { | |
$handler->display->display_options['defaults']['title'] = FALSE; | |
$handler->display->display_options['title'] = 'High School Teachers and Administrators'; | |
$handler->display->display_options['defaults']['arguments'] = FALSE; | |
+ /* Contextual filter: Global: Null */ | |
+ $handler->display->display_options['arguments']['null']['id'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['table'] = 'views'; | |
+ $handler->display->display_options['arguments']['null']['field'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['default_argument_type'] = 'fixed'; | |
+ $handler->display->display_options['arguments']['null']['summary']['number_of_records'] = '0'; | |
+ $handler->display->display_options['arguments']['null']['summary']['format'] = 'default_summary'; | |
+ $handler->display->display_options['arguments']['null']['summary_options']['items_per_page'] = '25'; | |
+ $handler->display->display_options['arguments']['null']['specify_validation'] = TRUE; | |
+ $handler->display->display_options['arguments']['null']['must_not_be'] = TRUE; | |
$handler->display->display_options['defaults']['filter_groups'] = FALSE; | |
$handler->display->display_options['defaults']['filters'] = FALSE; | |
/* Filter criterion: Content: Published */ | |
@@ -235,6 +275,16 @@ function sl_help_views_default_views() { | |
$handler->display->display_options['defaults']['title'] = FALSE; | |
$handler->display->display_options['title'] = 'High School Students and Parents'; | |
$handler->display->display_options['defaults']['arguments'] = FALSE; | |
+ /* Contextual filter: Global: Null */ | |
+ $handler->display->display_options['arguments']['null']['id'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['table'] = 'views'; | |
+ $handler->display->display_options['arguments']['null']['field'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['default_argument_type'] = 'fixed'; | |
+ $handler->display->display_options['arguments']['null']['summary']['number_of_records'] = '0'; | |
+ $handler->display->display_options['arguments']['null']['summary']['format'] = 'default_summary'; | |
+ $handler->display->display_options['arguments']['null']['summary_options']['items_per_page'] = '25'; | |
+ $handler->display->display_options['arguments']['null']['specify_validation'] = TRUE; | |
+ $handler->display->display_options['arguments']['null']['must_not_be'] = TRUE; | |
$handler->display->display_options['defaults']['filter_groups'] = FALSE; | |
$handler->display->display_options['defaults']['filters'] = FALSE; | |
/* Filter criterion: Content: Published */ | |
diff --git a/src/modules/features/sl_testimonials/sl_testimonials.views_default.inc b/src/modules/features/sl_testimonials/sl_testimonials.views_default.inc | |
index 292f91a..2a1c3b2 100644 | |
--- a/src/modules/features/sl_testimonials/sl_testimonials.views_default.inc | |
+++ b/src/modules/features/sl_testimonials/sl_testimonials.views_default.inc | |
@@ -65,6 +65,16 @@ function sl_testimonials_views_default_views() { | |
$handler->display->display_options['sorts']['created']['table'] = 'node'; | |
$handler->display->display_options['sorts']['created']['field'] = 'created'; | |
$handler->display->display_options['sorts']['created']['order'] = 'DESC'; | |
+ /* Contextual filter: Global: Null */ | |
+ $handler->display->display_options['arguments']['null']['id'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['table'] = 'views'; | |
+ $handler->display->display_options['arguments']['null']['field'] = 'null'; | |
+ $handler->display->display_options['arguments']['null']['default_argument_type'] = 'fixed'; | |
+ $handler->display->display_options['arguments']['null']['summary']['number_of_records'] = '0'; | |
+ $handler->display->display_options['arguments']['null']['summary']['format'] = 'default_summary'; | |
+ $handler->display->display_options['arguments']['null']['summary_options']['items_per_page'] = '25'; | |
+ $handler->display->display_options['arguments']['null']['specify_validation'] = TRUE; | |
+ $handler->display->display_options['arguments']['null']['must_not_be'] = TRUE; | |
/* Filter criterion: Content: Published */ | |
$handler->display->display_options['filters']['status']['id'] = 'status'; | |
$handler->display->display_options['filters']['status']['table'] = 'node'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment