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.
When Image Resize Filter is installed, it automatically outputs a warning via drupal_set_message():
<?php
/**
* Implements hook_install().
*/
function image_resize_filter_install() {
drupal_set_message(t('The image resize filter has been installed. Before this does anything, the image resize filter needs to be added to one or more text formats. Visit the <a href="!url">text format administration</a> to set up this filter.', array('!url' => url('admin/config/content/formats'))), 'warning');
}
?>
I understand the purpose of this message, but I don't think this is the best place to do it.
It also creates an annoying issue when using Aegir to install a site via installation profile and Drush Make. Aegir marks the "Install" task with a yellow exclamation point because Drush Make spits out this module's warning. The site is built properly, but all site install tasks in Aegir are marked with a warning, instead of the green checkbox indicating a success.
Comment | File | Size | Author |
---|---|---|---|
#1 | image_resize_filter_no_install_warning-2093315-1.patch | 685 bytes | m.stenta |
Comments
Comment #1
m.stentaAttached is a patch that removes the hook_install() implementation... for anyone who's using Drush Make and is sick of this warning.
Comment #2
m.stentaHere's a chunk of code from my Drush makefile, for anyone interested:
Comment #3
mglamanWe've been using this in production to make Aegir happy.
Comment #5
ram4nd CreditAttribution: ram4nd as a volunteer commented