function views_handler_area_text::render_textarea

Same name in other branches
  1. 7.x-3.x handlers/views_handler_area_text.inc \views_handler_area_text::render_textarea()

Render a text area, using the proper format.

1 call to views_handler_area_text::render_textarea()
views_handler_area_text::render in handlers/views_handler_area_text.inc
Render the area

File

handlers/views_handler_area_text.inc, line 99

Class

views_handler_area_text
Views area text handler.

Code

function render_textarea($value, $format) {
    static $formats = array();
    // Check to make sure the filter format exists; if not, we don't
    // display anything.
    $format = filter_resolve_format($format);
    if (!array_key_exists($format, $formats)) {
        $formats[$format] = db_result(db_query("SELECT name FROM {filter_formats} WHERE format = %d", $format));
    }
    if (!isset($formats[$format])) {
        return;
    }
    if ($value) {
        if ($this->options['tokenize']) {
            $value = $this->view->style_plugin
                ->tokenize_value($value, 0);
        }
        return check_markup($value, $format, FALSE);
    }
}