/[drupal]/contributions/modules/automenu/automenu.module
ViewVC logotype

Diff of /contributions/modules/automenu/automenu.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.4.1, Fri Oct 10 14:40:11 2008 UTC revision 1.1.4.2, Tue May 5 12:29:33 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: automenu.module,v 1.1 2008/06/09 08:04:05 danielfs Exp $  // $Id: automenu.module,v 1.1.4.1 2008/10/10 14:40:11 danielfs Exp $
3    
4  /**  /**
5   * Implementation of hook_nodeapi().   * Implementation of hook_nodeapi().
# Line 14  function automenu_nodeapi(&$node, $op, $ Line 14  function automenu_nodeapi(&$node, $op, $
14        if ($parent_menu[0] != '0') {        if ($parent_menu[0] != '0') {
15          if (($node->menu['link_title'] == '' || $node->menu['delete']) && $node->status == 1) {          if (($node->menu['link_title'] == '' || $node->menu['delete']) && $node->status == 1) {
16            $new_menu = array(            $new_menu = array(
17                'menu_name' => $parent_menu[0],
18              'link_path' => 'node/' . $node->nid,              'link_path' => 'node/' . $node->nid,
19              'link_title' => $node->title,              'link_title' => $node->title,
20              'plid' => $parent_menu[1],              'plid' => $parent_menu[1],

Legend:
Removed from v.1.1.4.1  
changed lines
  Added in v.1.1.4.2

  ViewVC Help
Powered by ViewVC 1.1.2