theme_indentation

Versions
6
theme_indentation($size = 1)
7
theme_indentation($variables)

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

Code

includes/theme.inc, line 1668

<?php
function theme_indentation($size = 1) {
  $output = '';
  for ($n = 0; $n < $size; $n++) {
    $output .= '<div class="indentation">&nbsp;</div>';
  }
  return $output;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.