diff --git a/includes/bean.core.inc b/includes/bean.core.inc index f13dff1..2b8dd4f 100644 --- a/includes/bean.core.inc +++ b/includes/bean.core.inc @@ -348,6 +348,14 @@ class Bean extends Entity { */ public function view($view_mode = 'default', $langcode = NULL, $page = NULL) { $content = parent::view($view_mode, $langcode); + + // Add the title so that it may be controlled via other display mechanisms. + $content['title'] = array( + '#theme' => 'html_tag', + '#tag' => 'h2', + '#value' => isset($this->title) ? $this->title : '', + ); + if (empty($this->plugin)) { return $content; }