You are here

function _rules_forms_weight_options in Rules Forms Support 7

Provides numeric options for setting the weight of a form element.

1 string reference to '_rules_forms_weight_options'
rules_forms_rules_action_info in ./rules_forms.rules.inc
Implements hook_rules_action_info().

File

./rules_forms.rules.inc, line 454
Rules events, conditions, and actions hooks for Rules Forms module.

Code

function _rules_forms_weight_options() {
  $options = array();
  for ($i = -20; $i < 21; $i++) {
    $options[(string) $i] = $i;
  }
  return $options;
}