/[drupal]/contributions/modules/nodereferrer_create/add_reference.php
ViewVC logotype

Diff of /contributions/modules/nodereferrer_create/add_reference.php

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

revision 1.1.2.3, Mon Oct 13 11:34:19 2008 UTC revision 1.1.2.4, Mon Oct 20 12:01:39 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: add_reference.php,v 1.1.2.2 2008/09/09 11:11:13 anselmheaton Exp $  // $Id: add_reference.php,v 1.1.2.3 2008/10/13 11:34:19 anselmheaton Exp $
3    
4  /**  /**
5   * Implementation of hook_menu() for the add to referrer page   * Implementation of hook_menu() for the add to referrer page
# Line 42  function _nodereferrer_create_add_refere Line 42  function _nodereferrer_create_add_refere
42        '#title' => t('Select @content_type you want to add to @title',        '#title' => t('Select @content_type you want to add to @title',
43          array('@content_type' => $type['name'], '@title' => $node->title)),          array('@content_type' => $type['name'], '@title' => $node->title)),
44        '#autocomplete_path' => 'nodereference/autocomplete/'.$field_name,        '#autocomplete_path' => 'nodereference/autocomplete/'.$field_name,
45        '#default_value' => ''        '#default_value' => '',
46          '#maxlength' => 1024, // A Drupal title is maximum 255 chars ; but the autocomplete can be the result of a view.
47      );      );
48    } else {    } else {
49      $form['referrence'] = array(      $form['referrence'] = array(
# Line 50  function _nodereferrer_create_add_refere Line 51  function _nodereferrer_create_add_refere
51        '#title' => t('Select @content_type you want to use for @title. This will replace the existing value.',        '#title' => t('Select @content_type you want to use for @title. This will replace the existing value.',
52          array('@content_type' => $type['name'], '@title' => $node->title)),          array('@content_type' => $type['name'], '@title' => $node->title)),
53        '#autocomplete_path' => 'nodereference/autocomplete/'.$field_name,        '#autocomplete_path' => 'nodereference/autocomplete/'.$field_name,
54        '#default_value' => ''        '#default_value' => '',
55          '#maxlength' => 1024, // A Drupal title is maximum 255 chars ; but the autocomplete can be the result of a view.
56      );      );
57    }    }
58    

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

  ViewVC Help
Powered by ViewVC 1.1.2