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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.