| 5 form.inc | weight_value(&$form) |
| 6 form.inc | weight_value(&$form) |
| 7 form.inc | weight_value(&$form) |
| 8 form.inc | weight_value(&$form) |
Sets the value for a weight element, with zero as a default.
Related topics
File
- includes/
form.inc, line 2985 - Functions for form and batch generation and processing.
Code
function weight_value(&$form) {
if (isset($form['#default_value'])) {
$form['#value'] = $form['#default_value'];
}
else {
$form['#value'] = 0;
}
}
Login or register to post comments