function theme_indentation

7.x theme.inc theme_indentation($variables)
6.x theme.inc theme_indentation($size = 1)
8.x theme.inc theme_indentation($variables)

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()
field_ui_table_pre_render in drupal/modules/field_ui/field_ui.admin.inc
Pre-render callback for field_ui_table elements.
theme_book_admin_table in drupal/modules/book/book.admin.inc
Returns HTML for a book administration form.
theme_menu_overview_form in drupal/modules/menu/menu.admin.inc
Returns HTML for the menu overview form into a table.
theme_taxonomy_overview_terms in drupal/modules/taxonomy/taxonomy.admin.inc
Returns HTML for a terms overview form as a sortable list of terms.
5 string references to the theme hook from theme_indentation()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

drupal_common_theme in drupal/includes/common.inc
Provides theme registration for themes across .inc files.
field_ui_table_pre_render in drupal/modules/field_ui/field_ui.admin.inc
Pre-render callback for field_ui_table elements.
theme_book_admin_table in drupal/modules/book/book.admin.inc
Returns HTML for a book administration form.
theme_menu_overview_form in drupal/modules/menu/menu.admin.inc
Returns HTML for the menu overview form into a table.
theme_taxonomy_overview_terms in drupal/modules/taxonomy/taxonomy.admin.inc
Returns HTML for a terms overview form as a sortable list of terms.

File

drupal/includes/theme.inc, line 2370
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;
}