I had found a solution https://drupal.stackexchange.com/a/106363/60214.
So I had decided to implement that feature.
Find the patch below.

PS: Additionally fixed coding standard issues.

CommentFileSizeAuthor
#2 allow_apply_image_style-2886434-2.patch5.43 KBvoleger

Comments

voleger created an issue. See original summary.

voleger’s picture

StatusFileSize
new5.43 KB
voleger’s picture

Assigned: voleger » Unassigned
Status: Active » Needs review

If you have an idea how to move theme_logo_block_image_style() into logo_block.theme.inc file feel free to provide updated patch.

ordermind’s picture

Status: Needs review » Needs work

Thanks for the patch, it looks good on the whole so I'll just test it and make some minor changes like putting the theme function in the .theme.inc file. Btw, why did you add a line break to the description on line 52?

voleger’s picture

There is a few coding standards error:

logo_block.module:44 - phpcs: Closing parenthesis of array declaration must be on a new line.
logo_block.module:44 - phpcs: Closing parenthesis of array declaration must be on a new line.
logo_block.module:44 - phpcs: A comma should follow the last multiline array item. Found 'http://drupal.org'

So I just added line brakes before each argument of t function at 41 line and followed correct indentation.

voleger’s picture

Unexpected behavior will appear when function theme_logo_block_image_style() move into .theme.inc file.

That theme function can't be rendered after logo_block_block_save(). Only after cache rebuild.

But leaving theme_logo_block_image_style() in .module file fix that.

ordermind’s picture

Status: Needs work » Fixed

There, now I have applied your patch with some cosmetic changes. A new release is on the way.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.