function gnode_node_submit in Group 7
Implements hook_node_submit().
See also
File
- modules/
gnode/ gnode.module, line 441 - Contains Group's implementation of the Node module hooks and forms.
Code
function gnode_node_submit($node, $form, &$form_state) {
if (!empty($form_state['values']['group_settings']['gid'])) {
$node->group = $form_state['values']['group_settings']['gid'];
}
elseif (isset($node->group)) {
unset($node->group);
}
}