Commit 00de5e50 authored by webchick's avatar webchick

Issue #2578567 by Cottser: Remove theme_indentation() and use Twig template only

parent 68ff6eb5
......@@ -1096,23 +1096,6 @@ function template_preprocess_item_list(&$variables) {
}
}
/**
* Returns HTML for an indentation div; used for drag and drop tables.
*
* @param $variables
* An associative array containing:
* - size: Optional. The number of indentations to create.
*
* @ingroup themeable
*/
function theme_indentation($variables) {
$output = '';
for ($n = 0; $n < $variables['size']; $n++) {
$output .= '<div class="js-indentation indentation">&nbsp;</div>';
}
return $output;
}
/**
* Prepares variables for container templates.
*
......@@ -1779,7 +1762,6 @@ function drupal_common_theme() {
),
'indentation' => array(
'variables' => array('size' => 1),
'function' => 'theme_indentation',
),
// From theme.maintenance.inc.
'maintenance_page' => array(
......
......@@ -11,10 +11,4 @@
* @ingroup themeable
*/
#}
<!--
THIS FILE IS NOT USED AND IS HERE AS A STARTING POINT FOR CUSTOMIZATION ONLY.
See https://api.drupal.org/api/function/theme_indentation/8 for details.
After copying this file to your theme's folder and customizing it, remove this
HTML comment.
-->
{% for i in 1..size if size > 0 %}<div class="js-indentation indentation">&nbsp;</div>{% endfor %}
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