function _weight_get_options in Weight 7.3
Same name and namespace in other branches
- 7.2 weight.module \_weight_get_options()
Get weight range options.
2 calls to _weight_get_options()
File
- ./
weight.module, line 173 - Provides a weight field that allows entities to be ordered.
Code
function _weight_get_options($range) {
$options = array();
for ($i = -$range; $i <= $range; $i++) {
$options[$i] = $i;
}
return $options;
}