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