/[drupal]/contributions/modules/node_clone/clone.module
ViewVC logotype

Diff of /contributions/modules/node_clone/clone.module

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

revision 1.5.4.3, Thu Dec 13 01:32:49 2007 UTC revision 1.5.4.4, Wed Oct 15 18:34:27 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: clone.module,v 1.5.4.3 2007/12/13 01:32:49 pwolanin Exp $
3  /**  /**
4   * Implementation of hook_help().   * Implementation of hook_help().
5   */   */
# Line 31  function clone_menu($may_cache) { Line 31  function clone_menu($may_cache) {
31      if (arg(0) == 'node' && is_numeric(arg(1))){      if (arg(0) == 'node' && is_numeric(arg(1))){
32         $node=node_load(arg(1));         $node=node_load(arg(1));
33         if ($node->nid) {         if ($node->nid) {
34           $access = (user_access('clone node') && filter_access($node->format) && node_access('create',$node->type));           $access = node_access('view', $node) && (user_access('clone node') && filter_access($node->format) && node_access('create',$node->type));
35           $items[] = array('path' => 'node/'. $node->nid.'/clone',           $items[] = array('path' => 'node/'. $node->nid.'/clone',
36                            'title' => t('clone'),                            'title' => t('clone'),
37                            'callback' => 'clone_node', 'access' => $access,                            'callback' => 'clone_node', 'access' => $access,

Legend:
Removed from v.1.5.4.3  
changed lines
  Added in v.1.5.4.4

  ViewVC Help
Powered by ViewVC 1.1.2