Commit 3c305393 authored by alexpott's avatar alexpott

Issue #2208893 by ngocketit, longwave: Remove unused functions from Views.

parent 821da69c
......@@ -1049,22 +1049,6 @@ function views_get_view_result($name, $display_id = NULL) {
}
}
/**
* #process callback to see if we need to String::checkPlain() the options.
*
* Since FAPI is inconsistent, the #options are sanitized for you in all cases
* _except_ checkboxes. We have form elements that are sometimes 'select' and
* sometimes 'checkboxes', so we need decide late in the form rendering cycle
* if the options need to be sanitized before they're rendered. This callback
* inspects the type, and if it's still 'checkboxes', does the sanitation.
*/
function views_process_check_options($element, &$form_state) {
if ($element['#type'] == 'checkboxes' || $element['#type'] == 'checkbox') {
$element['#options'] = array_map('\Drupal\Component\Utility\String::checkPlain', $element['#options']);
}
return $element;
}
/**
* Validation callback for query tags.
*/
......
......@@ -343,10 +343,3 @@ function views_ui_truncate($string, $length) {
return $string;
}
/**
* Magic load function. Wrapper to load a view.
*/
function views_ui_load($name) {
return Views::getView($name);
}
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