diff --git a/core/includes/theme.inc b/core/includes/theme.inc index b644ccb..79ffdd7 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -3111,22 +3111,6 @@ function template_preprocess_region(&$variables) { } /** - * Prepares variables for dropbutton wrapper templates. - * - * Default template: dropbutton-wrapper.html.twig. - * - * @param array $variables - * An associative array containing: - * - element: An associative array containing the properties and children of - * the dropbutton menu. Properties used: #children. - */ -function template_preprocess_dropbutton_wrapper(&$variables) { - if (!empty($variables['element']['#children'])) { - $variables['children'] = $variables['element']['#children']; - } -} - -/** * Provides theme registration for themes across .inc files. */ function drupal_common_theme() { @@ -3158,7 +3142,7 @@ function drupal_common_theme() { 'variables' => array('links' => array(), 'attributes' => array('class' => array('links')), 'heading' => array()), ), 'dropbutton_wrapper' => array( - 'render element' => 'element', + 'variables' => array('children' => NULL), 'template' => 'dropbutton-wrapper', ), 'image' => array(