1.20.x 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

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