Closed (works as designed)
Project:
Block edit
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2011 at 12:43 UTC
Updated:
27 Dec 2011 at 20:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
svdhout commentedI've created a patch that provides this functionality.
There are 2 hooks invoked:
hook_block_edit_node_links => this hook has $node (as in preprocess) as an argument,
hook_block_edit_block_links => this hook has $block (as in preprocess) as an argument.
To add a new item to the block_edit div you can write the follow code in your custom module:
Comment #2
joelstein commentedThis is already possible. If you notice in your patch, drupal_alter() is used to expose the links to be changed. Just invoke hook_block_edit_links and hook_node_edit_links and you're all set. They should receive an array of links, which you can add to or alter at your discretion.