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.
In the install file, you create messages containing a clickable url:
Example:
46 $message = t('You already have the FitVids.js jQuery plugin installed. Configure the module !fitvids-configuration', array(
47 '!fitvids-configuration' => l(t('here'), 'admin/config/media/fitvids'),
48 ));
After generating the message with the clickable url, you run it through check_plain? I think thats an error?
49 drupal_set_message(check_plain($message));
Comments
Comment #1
DerekAhmedzai CreditAttribution: DerekAhmedzai commentedThanks, will fix that.
Comment #2
Moloc CreditAttribution: Moloc commentedAs reading the issue again, i think instead of removing the check_plain check, a better solution may be to use filter_xss_admin?
Comment #3
DerekAhmedzai CreditAttribution: DerekAhmedzai commentedAm using
filter_xss_admin
in the latest release.