Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, and thanks for your work,
When I want to edit a comment I get a validation error about the date field, I have added
this line
if (isset($form['admin']['date'])) {
$form['admin']['date']['#element_validate']=array('calendar_systems_date_validate');
}
after this
function calendar_systems_form_alter(&$form, $form_state, $form_id) {
if (isset($form['author']['date'])) {
$form['author']['date']['#element_validate']=array('calendar_systems_date_validate');
}
and it fixed the issue.
Comments
Comment #1
sinasalek CreditAttribution: sinasalek commentedThanks @abbasmousavi
Comment #2
sinasalek CreditAttribution: sinasalek commentedFixed in head
Comment #4
sinasalek CreditAttribution: sinasalek at Practicalidea commentedComment #5
sinasalek CreditAttribution: sinasalek at Practicalidea commented