Enable a block with "create child" funtionality
derjochenmeyer - June 22, 2009 - 12:40
| Project: | Node Hierarchy |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
A block is the most flexible way to offer customizeable "create" links for Node Hierarchy.
This Block can be placed below the content (default) or in any other region provided by drupal.
| Attachment | Size |
|---|---|
| nodehierarchy_blocks.zip | 1.27 KB |

#1
That's fantastic, but it doesn't work unless you have a theme with a particular region called 'content' which I don't.
You need to change this
$blocks[0] = array('info' => t('Extend Node Hierarchy'),
'weight' => 0,
'status' => 1,
'region' => 'content'
);
to this
$blocks[0] = array('info' => t('Extend Node Hierarchy'),
);