Permalink
Browse files

simpleview box::access() determines if box should list in layout

  • Loading branch information...
1 parent 321cb99 commit 8bd99cb70d6be2e885dc1196b1dd054d172e1f59 Jon Sagotsky committed Mar 30, 2012
@@ -79,5 +79,11 @@ class os_simpleview_box extends os_boxes_default {
return ($class) ? new $class() : FALSE;
}
- //parent::save();
+ /**
+ * Does this box only use node types that have been disabled?
+ */
+ public function access(){
+ return ($this->options['content_type'] &&
+ (array_key_exists($this->options['content_type'], _os_simpleview_content_types()) || $this->options['content_type'] == 'all') );
+ }
}

0 comments on commit 8bd99cb

Please sign in to comment.