function weight_value


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 weight_value(&$form)
cle7 weight_value(&$form)
elmsmedia7 weight_value(&$form)
icor7 weight_value(&$form)
meedjum_blog7 weight_value(&$form)
mooc7 weight_value(&$form)

Sets the value for a weight element, with zero as a default.

Related topics


includes/, line 3053
Functions for form and batch generation and processing.


function weight_value(&$form) {
  if (isset($form['#default_value'])) {
    $form['#value'] = $form['#default_value'];
  else {
    $form['#value'] = 0;