Active
Project:
Framework
Version:
6.x-3.x-dev
Component:
PHP code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2012 at 20:05 UTC
Updated:
2 Feb 2012 at 20:05 UTC
Hi, I've wrote a little update for framework theme (D6) in order to support nodeblock module editing:
Just add the following code after the last elseif on template.block-editing.inc:
elseif ($block->module == 'nodeblock' && node_access("update", $block->delta)) {
$vars['edit_links_array']['block-edit-menu'] = l('<span>' . t('edit node block') . '</span>', 'node/'.$block->delta.'/edit', array(
'attributes' => array(
'title' => t('edit the current node block'),
'class' => 'block-edit-nodeblock',
),
'query' => drupal_get_destination(),
'html' => TRUE,
)
);
}
Thanks! :-)