Since the LinkedIn Auth login block would still need to be enabled and placed into a region on the blocks page, the variable only adds a layer of complexity. It will also fix #1371500: hook_block_info() must return an array() - warns "Invalid argument supplied for foreach() in _block_rehash()" and #1622890: When linkedin auth enabled - Error foreach() in _block_rehash() because without the extra condition around the hook_block_info() we'll always be returning the block info.

CommentFileSizeAuthor
#1 linkedin-block_var-1703360-1.patch2.85 KBZenDoodles

Comments

ZenDoodles’s picture

StatusFileSize
new2.85 KB
silverbell’s picture

Thanks @ZenDoodles, this patch fixed the error message on my site.

Jorrit’s picture

Status: Needs review » Reviewed & tested by the community

I agree with this patch. It is very uncommon for modules to require checking a checkbox before a block becomes usable.

The patch works for me.

inventlogic’s picture

I have applied this patch which fixed the issue

Is this going to be committed?

davad’s picture

Status: Reviewed & tested by the community » Fixed

Looks good. Committed.

Status: Fixed » Closed (fixed)

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