diff --git a/bean.module b/bean.module index 2ad3302..9521fa6 100644 --- a/bean.module +++ b/bean.module @@ -772,6 +772,19 @@ function bean_create($values) { } /** + * Implements hook_entity_view() + */ +function bean_entity_view($entity, $type, $view_mode, $langcode) { + if ($type == 'bean') { + $entity->content['title'] = array( + '#theme' => 'html_tag', + '#tag' => 'h2', + '#value' => $entity->title, + ); + } +} + +/** * View the Bean */ function bean_view(Bean $bean, $view_mode = 'default', $langcode = NULL) {