At the moment bean_wysiwyg uses default view mode for bean block.

Usage:

$build = bean_view($bean);

And bean_view definition:

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

  return $bean->view($view_mode, $langcode);
}
CommentFileSizeAuthor
#1 bean_wysiwyg-view_mode-2390401-1.patch852 bytessanchiz

Comments

sanchiz’s picture

Status: Active » Needs review
StatusFileSize
new852 bytes

Initial patch.

ygerasimov’s picture

Status: Needs review » Fixed

Committed.

  • ygerasimov committed 005595c on 7.x-1.x authored by sanchiz
    Issue #2390401 by sanchiz: Bean wysiwyg always uses default view mode
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.