You are here

function views_plugin_display::render_textarea in Views (for Drupal 7) 6.2

Render a text area, using the proper format.

3 calls to views_plugin_display::render_textarea()
views_plugin_display::render_empty in plugins/views_plugin_display.inc
Render the empty text of the view.
views_plugin_display::render_footer in plugins/views_plugin_display.inc
Render the footer of the view.
views_plugin_display::render_header in plugins/views_plugin_display.inc
Render the header of the view.

File

plugins/views_plugin_display.inc, line 1771
Contains the base display plugin.

Class

views_plugin_display
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Code

function render_textarea($area) {
  static $formats = array();
  $value = $this
    ->get_option($area);

  // Check to make sure the filter format exists; if not, we don't
  // display anything.
  $format = filter_resolve_format($this
    ->get_option($area . '_format'));
  if (!array_key_exists($format, $formats)) {
    $formats[$format] = db_result(db_query("SELECT name FROM {filter_formats} WHERE format = %d", $format));
  }
  if (!$formats[$format]) {
    return;
  }
  if ($value) {
    return check_markup($value, $format, FALSE);
  }
}