You are here

function views_get_textarea in Views (for Drupal 7) 5

1 call to views_get_textarea()
theme_views_view in ./views.module
Display a view.

File

./views.module, line 1505

Code

function views_get_textarea($view, $type, $textarea) {
  $use_page = "block_use_page_{$textarea}";
  $var = ($type != 'block' || $view->{$use_page} ? 'page_' : 'block_') . $textarea;
  $format = $var . '_format';
  if ($view->{$var}) {
    return "<div class='" . views_css_safe('view-' . $textarea . ' view-' . $textarea . '-' . $view->name) . "'>" . check_markup($view->{$var}, $view->{$format}, false) . "</div>\n";
  }
}