function theme_indentation

Returns HTML for an indentation div; used for drag and drop tables.

Parameters

$variables: An associative array containing:

  • size: Optional. The number of indentations to create.

Related topics

4 theme calls to theme_indentation()
OverviewBase::tablePreRender in drupal/core/modules/field_ui/lib/Drupal/field_ui/OverviewBase.php
Performs pre-render tasks on field_ui_table elements.
taxonomy_overview_terms in drupal/core/modules/taxonomy/taxonomy.admin.inc
Form builder for the taxonomy terms overview.
theme_book_admin_table in drupal/core/modules/book/book.admin.inc
Returns HTML for a book administration form.
theme_menu_overview_form in drupal/core/modules/menu/menu.admin.inc
Returns HTML for the menu overview form into a table.

File

drupal/core/includes/theme.inc, line 2504
The theme system, which controls the output of Drupal.

Code

function theme_indentation($variables) {
  $output = '';
  for ($n = 0; $n < $variables['size']; $n++) {
    $output .= '<div class="indentation">&nbsp;</div>';
  }
  return $output;
}