function diff_node_revisions_validate in Diff 5
Same name and namespace in other branches
- 5.2 diff.module \diff_node_revisions_validate()
- 6.2 diff.pages.inc \diff_node_revisions_validate()
- 6 diff.module \diff_node_revisions_validate()
- 7.3 diff.pages.inc \diff_node_revisions_validate()
- 7.2 diff.pages.inc \diff_node_revisions_validate()
Validation for input form to select two revisions.
File
- ./
diff.module, line 274
Code
function diff_node_revisions_validate($form_id, $form_values) {
$old_vid = $form_values['old'];
$new_vid = $form_values['new'];
if ($old_vid == $new_vid || !$old_vid || !$new_vid) {
form_set_error('diff', t('Select different revisions to compare.'));
}
}