/[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.2, Tue May 5 12:29:33 2009 UTC revision 1.1.4.3, Tue May 5 13:14:03 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: automenu.module,v 1.1.4.1 2008/10/10 14:40:11 danielfs Exp $  // $Id: automenu.module,v 1.1.4.2 2009/05/05 12:29:33 farbridges Exp $
3    
4  /**  /**
5   * Implementation of hook_nodeapi().   * Implementation of hook_nodeapi().
# Line 18  function automenu_nodeapi(&$node, $op, $ Line 18  function automenu_nodeapi(&$node, $op, $
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],
21                'hidden' => variable_get('automenu_hide_'.$node->type, 0),
22              //'customized' => true, // ?              //'customized' => true, // ?
23            );            );
24            if (!menu_link_save($new_menu)) {            if (!menu_link_save($new_menu)) {
# Line 47  function automenu_form_alter(&$form, $fo Line 48  function automenu_form_alter(&$form, $fo
48    
49      // add a selection for "no language" selection... maybe we can find a      // add a selection for "no language" selection... maybe we can find a
50      // better way (I think this is what happens in language neutral situations?)      // better way (I think this is what happens in language neutral situations?)
51    
52        $form['workflow']['automenu_hide'] = array(
53            '#type' => 'checkbox',
54            '#title' => t('Hide automenu entry'),
55            '#default_value' => variable_get('automenu_hide_' . $form['#node_type']->type, 0),
56        );
57    
58      $form['workflow']['parentmenu'] = array(      $form['workflow']['parentmenu'] = array(
59        '#type' => 'select',        '#type' => 'select',
60        '#title' => t('Default parent menu'),        '#title' => t('Default parent menu'),

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

  ViewVC Help
Powered by ViewVC 1.1.2