diff --git a/core/modules/taxonomy/taxonomy.admin.inc b/core/modules/taxonomy/taxonomy.admin.inc index 5ca2345..875ccf7 100644 --- a/core/modules/taxonomy/taxonomy.admin.inc +++ b/core/modules/taxonomy/taxonomy.admin.inc @@ -241,8 +241,12 @@ function taxonomy_overview_terms($form, &$form_state, Vocabulary $vocabulary) { ); foreach ($current_page as $key => $term) { $form['terms'][$key]['#term'] = $term; + $indentation = array('#theme' => 'indentation'); + if (isset($term->depth->value)) { + $indentation['#size'] = $term->depth->value; + } $form['terms'][$key]['term'] = array( - '#prefix' => isset($term->depth->value) && $term->depth->value > 0 ? theme('indentation', array('size' => $term->depth->value)) : '', + '#prefix' => isset($term->depth->value) && $term->depth->value > 0 ? drupal_render($indentation) : '', '#type' => 'link', '#title' => $term->label(), '#href' => "taxonomy/term/" . $term->id(),