Skip navigation
Help

theme_indentation

6 theme.inc theme_indentation($size = 1)
7 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()

File

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