This patch adds contextual links to the agenda blocks. I'm not sure if this is the correct way to do it using MENU_LOCAL_ACTION instead of MENU_CALLBACK but it seems to be working correctly.

Comments

gooddesignusa’s picture

Patch changes the "configure", "debug", and "clear" menu items type to MENU_LOCAL_ACTION and adds 'context' => MENU_CONTEXT_INLINE to each item.
I also needed to add
'#contextual_links' => array('agenda'=>array('admin/config/services/agenda',array($delta))),
To the array returned in agenda_block_view to get the contextual links to show up.

Not sure if this is the correct way to do this, hopefully someone with more experience will chime in.

gooddesignusa’s picture

StatusFileSize
new1.79 KB
gooddesignusa’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: agenda-contextual_links-2384403-2.patch, failed testing.

  • guschilds committed 66beb83 on 7.x-2.x
    Issue #2384403 by gooddesignusa, guschilds: Tweaked contextual link...
  • guschilds committed e4364ee on 7.x-2.x authored by gooddesignusa
    Issue #2384403 by gooddesignusa: Added contextual links to agenda blocks...
guschilds’s picture

Status: Needs work » Fixed

I've confirmed that this is the correct way to add contextual links to these blocks and that these contextual links work. I've committed the patch in #2 to the 7.x-2.x and also tweaked the title and weights of these links. These will be available in the next development release as well as any release after 7.x-2.0-beta1. Thanks again, gooddesignusa!

Status: Fixed » Closed (fixed)

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