You are here

function boxes_view in Boxes 7.2

View the boxes

1 string reference to 'boxes_view'
boxes_menu in ./boxes.module
Implements hook_menu().

File

./boxes.module, line 652

Code

function boxes_view(Box $box, $view_mode = 'default', $langcode = NULL) {
  if (!isset($langcode)) {
    $langcode = $GLOBALS['language_content']->language;
  }
  drupal_set_title($box
    ->label());
  return $box
    ->view($view_mode, $langcode);
}