1 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

File

core/includes/theme.inc, line 2621
The theme system, which controls the output of Backdrop.

Code

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