I've applied your patch to the DRUPAL-7--1 branch, so should find its way into the next dev tarball. I tweaked the code comment a little in a second commit.
BUT I'm wondering if this isn't an issue with the install profile, are you enabling im_raw with the install profile? And is this error occurring because it's dependencies aren't enabled first? It would require both imagemagick.module and core's image.module to be enabled. The latter isn't enabled by default and that's where I think image_styles() is found.
That said I've not done a lot with install profiles, so I'll leave this open for now and if your sure it's a real issue not one caused by your install profile, please close it. If it is due to you not enabling dependencies then let me know and I'll revert the patch.
One of my features is using im_raw in its dependencies.
This feature is installed by the installation profile.
Without my patch the installation crashes.
As you can see the missing function is image_styles()
which is in core anyway.
The patch isn't something fancy but a snippet from
field_groups:
/**
* Implements hook_menu().
*/
function field_group_menu() {
$items = array();
// Ensure the following is not executed until field_bundles is working and
// tables are updated. Needed to avoid errors on initial installation.
if (defined('MAINTENANCE_MODE')) {
return $items;
}
//...
Comments
Comment #1
jantimon commentedComment #2
adrinux commentedI've applied your patch to the DRUPAL-7--1 branch, so should find its way into the next dev tarball. I tweaked the code comment a little in a second commit.
BUT I'm wondering if this isn't an issue with the install profile, are you enabling im_raw with the install profile? And is this error occurring because it's dependencies aren't enabled first? It would require both imagemagick.module and core's image.module to be enabled. The latter isn't enabled by default and that's where I think image_styles() is found.
That said I've not done a lot with install profiles, so I'll leave this open for now and if your sure it's a real issue not one caused by your install profile, please close it. If it is due to you not enabling dependencies then let me know and I'll revert the patch.
Comment #3
jantimon commentedOne of my features is using im_raw in its dependencies.
This feature is installed by the installation profile.
Without my patch the installation crashes.
As you can see the missing function is image_styles()
which is in core anyway.
The patch isn't something fancy but a snippet from
field_groups:
Comment #4
adrinux commentedSounds like a lot of modules will have/need something like this. Marking this fixed.
Comment #5
adrinux commented