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
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.

AttachmentSize
nodehierarchy_blocks.zip1.27 KB

#1

danielb - October 21, 2009 - 05:55

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'),
    );

 
 

Drupal is a registered trademark of Dries Buytaert.