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

8.0.x
Alex Pott 2014-07-13 10:32:02 +01:00
parent 821da69cc0
commit 3c30539329
2 changed files with 0 additions and 23 deletions

View File

@ -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.
*/

View File

@ -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);
}