function quickedit_field_node_created_edit_form_validate in Quick Edit 7
Form validation handler for quickedit_field_node_created_edit_form().
See also
quickedit_field_node_created_edit_form()
quickedit_field_node_created_edit_form_submit()
1 string reference to 'quickedit_field_node_created_edit_form_validate'
- quickedit_field_node_created_edit_form in includes/
node.inc - Form constructor; in-place editing form for node's 'created' "extra field".
File
- includes/
node.inc, line 150 - Implements Quick Edit module hooks on behalf of node.module.
Code
function quickedit_field_node_created_edit_form_validate($form, &$form_state) {
$date = $form_state['values']['date'];
if (!empty($date) && strtotime($date) === FALSE) {
form_set_error('date', t('You have to specify a valid date.'));
}
}