theme_indentation

Definition

theme_indentation($size = 1)
drupal/includes/theme.inc, line 1729

Description

Create a standard indentation div. Used for drag and drop tables.

Parameters

$size Optional. The number of indentations to create.

Return value

A string containing indentations.

Related topics

Namesort iconDescription
Default theme implementationsFunctions and templates that present output to the user, and can be implemented by themes.

Code

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