function photos_form_photos_image_edit_alter in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 photos.module \photos_form_photos_image_edit_alter()
- 8.4 photos.module \photos_form_photos_image_edit_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
photos.module, line 416 - Implementation of photos.module.
Code
function photos_form_photos_image_edit_alter(&$form, FormStateInterface $form_state, $form_id) {
// Integrate comment module.
if (\Drupal::moduleHandler()
->moduleExists('comment')) {
$form['#submit'][] = 'photos_image_edit_submit_comment';
}
}