theme_indentation

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 theme_indentation($size = 1)
7 – 8 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

Code

includes/theme.inc, line 2005

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