You are here

function bean_view in Bean (for Drupal 7) 7

View the Bean

2 calls to bean_view()
bean_view_callback in ./bean.module
View callback
bean_view_page in includes/bean.pages.inc
Bean view page
1 string reference to 'bean_view'
bean_menu in ./bean.module
Implements hook_menu().

File

./bean.module, line 833
Block Entity

Code

function bean_view(Bean $bean, $view_mode = 'default', $langcode = NULL) {
  if (!isset($langcode)) {
    $langcode = $GLOBALS['language_content']->language;
  }
  return $bean
    ->view($view_mode, $langcode);
}