Permalink
Browse files

Remove Atrium Reader feed if Reader not enabled.

  • Loading branch information...
1 parent 1d47b5a commit a4bcbf6760506d7c06e1bde201936192357f93f6 @grayside committed Sep 2, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 grayside_oa_feeds.module
View
9 grayside_oa_feeds.module
@@ -133,6 +133,15 @@ function grayside_oa_feeds_strongarm_alter(&$arms) {
}
/**
+ * Implementation of hook_views_default_views_alter().
+ */
+function grayside_oa_feeds_views_default_views_alter(&$views) {
+ if (!module_exists('atrium_reader')) {
+ unset($views['oa_feeds_reader']);
+ }
+}
+
+/**
* Implementation of hook_theme().
* Add the html-stripped version of the atrium activity field to the module.
*/

0 comments on commit a4bcbf6

Please sign in to comment.