Closed (fixed)
Project:
Custom Contextual Links
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2012 at 18:09 UTC
Updated:
4 Sep 2012 at 18:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
bkoether commentedHi barraponto,
CCL is meant to be an extension of the core contextual module.
That means that you can add your custom links to elements that are supported by the core module.
The two blocks you reference above are special blocks that, to my understanding, are not meant to have contextual links.
Personally I also don't see much of a use case for these two blocks to have contextual links. Maybe you can explain a bit more what you're trying to accomplish.
I definitely don't see this as a bug, so I changed the category to support request.
Comment #2
bkoether commentedComment #3
barrapontoMy use case: I wanted to add a contact settings contextual link to the main content block on contact pages.
It's not that these blocks are not supported by core Contextual module, these blocks just don't get the Block module default contextual links. Any other module providing these blocks a contextual link would trigger CCL supporting them properly.
Anyway, I think adding hook_menu_alter and hook_block_view_alter just to support these two blocks more trouble than it's worth. Instead, CCL should remove these blocks from the available options.
Comment #4
barrapontoHere is patch.
Comment #5
bkoether commentedHi barraponto,
I agree with you. Hiding these blocks makes sense.
I added your patch to the dev version and it will go into 7.x-1.5.
Thanks,
Ben