You are here

function bean_view_page in Bean (for Drupal 7) 7

Bean view page

1 string reference to 'bean_view_page'
bean_menu in ./bean.module
Implements hook_menu().

File

includes/bean.pages.inc, line 11
Bean Functions

Code

function bean_view_page(Bean $bean) {
  $title = $bean
    ->label() ? $bean
    ->label() : $bean
    ->adminTitle();
  $view_mode = $bean->view_mode ? $bean->view_mode : 'default';
  drupal_set_title($title);
  return bean_view($bean, $view_mode);
}