function _weight_set_ajax in Weight 7.2
1 string reference to '_weight_set_ajax'
- weight_form_node_admin_content_alter in ./
weight.module - Implements hook_form_FORM_ID_alter().
File
- ./
weight.module, line 202
Code
function _weight_set_ajax($form, $form_state) {
$nid = $form_state['input']['_triggering_element_name'];
$weight = $form_state['values'][$nid];
$node = node_load($nid);
$node->weight_weight = $weight;
_weight_set_weight($node);
// hook_weight_set_ajax_alter($node)
drupal_alter('weight_set_ajax', $node);
}