function scheduler_form_language_content_settings_form_alter in Scheduler 2.x
Same name and namespace in other branches
- 8 scheduler.module \scheduler_form_language_content_settings_form_alter()
Implements hook_form_FORM_ID_alter() for language_content_settings_form.
File
- ./
scheduler.module, line 552 - Scheduler publishes and unpublishes entities on dates specified by the user.
Code
function scheduler_form_language_content_settings_form_alter(array &$form, FormStateInterface $form_state) {
// Add our validation function for the translation field settings form at
// admin/config/regional/content-language
// This hook function caters for all entity types, not just nodes.
$form['#validate'][] = '_scheduler_translation_validate';
}