Skip to content
Snippets Groups Projects
Commit 84beb258 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #44771 by jvandyk: small performance improvement.

parent 2e9bbda7
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -409,15 +409,14 @@ function _form_sort($a, $b) {
function _element_info($type, $refresh = null) {
static $cache;
$parents = array();
$basic_defaults = array(
'#description' => NULL,
'#attributes' => array(),
'#required' => FALSE,
'#tree' => FALSE,
'#parents' => $parents
'#parents' => array()
);
if ($refresh || !isset($cache)) {
if (!isset($cache) || $refresh) {
$cache = array();
foreach (module_implements('elements') as $module) {
$elements = module_invoke($module, 'elements');
......
......@@ -361,7 +361,7 @@ function theme_pager_link($text, $page_new, $element, $parameters = array(), $at
$query[] = $key .'='. $value;
}
// Set each pager link title
// Set each pager link title
if (!isset($attributes['title'])) {
static $titles = null;
if (!isset($titles)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment