function weight_value
Sets the value for a weight element, with zero as a default.
Related topics
File
-
includes/
form.inc, line 3183
Code
function weight_value(&$form) {
if (isset($form['#default_value'])) {
$form['#value'] = $form['#default_value'];
}
else {
$form['#value'] = 0;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.