function farm_group_form_log_form_alter in farmOS 7
Same name and namespace in other branches
- 2.x modules/asset/group/farm_group.module \farm_group_form_log_form_alter()
Implements hook_form_FORM_ID_alter().
File
- modules/
farm/ farm_group/ farm_group.module, line 129
Code
function farm_group_form_log_form_alter(&$form, &$form_state, $form_id) {
// If this log form contains field_farm_membership, add validation.
if (!empty($form['field_farm_membership'])) {
$form['#validate'][] = 'farm_group_field_farm_membership_validate';
}
}