function media_download_form_media_settings_form_alter in Media Download 1.1.x
Same name and namespace in other branches
- 1.2.x media_download.module \media_download_form_media_settings_form_alter()
- 1.0.x media_download.module \media_download_form_media_settings_form_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
media_download.module, line 20 - Overrides the canonical link template for the media entity.
Code
function media_download_form_media_settings_form_alter(&$form, FormStateInterface $form_state, $form_id) {
\Drupal::messenger()
->addWarning(t('%label has been overridden to facilitate direct file downloads for media entities. Changes to this value will not exhibit any effect while the Media Download module is installed.', [
'%label' => $form['security']['standalone_url']['#title'] ?? t('Standalone media URL'),
]));
}