Commit 25b02aa6 authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

Rename render_textarea() in text_custom handler to not produce a strict error....

Rename render_textarea() in text_custom handler to not produce a strict error. Additionally use sanitize_value() instead of direct filter_xss_admin().
parent 8a5faba7
...@@ -35,7 +35,7 @@ function options_submit(&$form, &$form_state) { ...@@ -35,7 +35,7 @@ function options_submit(&$form, &$form_state) {
function render($empty = FALSE) { function render($empty = FALSE) {
if (!$empty || !empty($this->options['empty'])) { if (!$empty || !empty($this->options['empty'])) {
return $this->render_textarea($this->options['content']); return $this->render_textarea_custom($this->options['content']);
} }
return ''; return '';
...@@ -44,12 +44,12 @@ function render($empty = FALSE) { ...@@ -44,12 +44,12 @@ function render($empty = FALSE) {
/** /**
* Render a text area with filter_xss_admin. * Render a text area with filter_xss_admin.
*/ */
function render_textarea($value) { function render_textarea_custom($value) {
if ($value) { if ($value) {
if ($this->options['tokenize']) { if ($this->options['tokenize']) {
$value = $this->view->style_plugin->tokenize_value($value, 0); $value = $this->view->style_plugin->tokenize_value($value, 0);
} }
return filter_xss_admin($value); return $this->sanitize_value($value, 'xss_admin');
} }
} }
......
...@@ -1572,6 +1572,15 @@ function get_aggregation_info() { ...@@ -1572,6 +1572,15 @@ function get_aggregation_info() {
'sort' => 'views_handler_sort_group_by_numeric', 'sort' => 'views_handler_sort_group_by_numeric',
), ),
), ),
'stddev_pop' => array(
'title' => t('Standard derivation'),
'method' => 'views_query_default_aggregation_method_simple',
'handler' => array(
'argument' => 'views_handler_argument_group_by_numeric',
'filter' => 'views_handler_filter_group_by_numeric',
'sort' => 'views_handler_sort_group_by_numeric',
),
)
); );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment