function alpha_scale_options

cis7 theme-settings.php alpha_scale_options($start, $end, $step)
cle7 theme-settings.php alpha_scale_options($start, $end, $step)
elmsmedia7 theme-settings.php alpha_scale_options($start, $end, $step)
icor7 theme-settings.php alpha_scale_options($start, $end, $step)
meedjum_blog7 theme-settings.php alpha_scale_options($start, $end, $step)
mooc7 theme-settings.php alpha_scale_options($start, $end, $step)

A helper function to return a proper options array for a form.

Parameters

$start: The number to start with.

$end: The number to end with.

$step: The size of a step.

Return value

An array of scale options.

1 call to alpha_scale_options()
alpha_theme_settings_general in sites/all/themes/ulmus/omega/alpha/includes/theme-settings-general.inc
@todo

File

sites/all/themes/ulmus/omega/alpha/theme-settings.php, line 121

Code

function alpha_scale_options($start, $end, $step) {
  $options = array();
  foreach (range($start, $end, $step) as $number) {
    // Format the value to display with one decimal.
    $options[(string) $number] = number_format($number, 1);
  }

  return $options;
}