| 1 |
<?php |
<?php |
| 2 |
// $Id: add_to_referrer.php,v 1.1.2.3 2008/10/13 10:49:05 anselmheaton Exp $ |
// $Id: add_to_referrer.php,v 1.1.2.4 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 |
| 48 |
'#title' => t('Select @content_type you want to add @title to', |
'#title' => t('Select @content_type you want to add @title to', |
| 49 |
array('@content_type' => $type['name'], '@title' => $node->title)), |
array('@content_type' => $type['name'], '@title' => $node->title)), |
| 50 |
'#autocomplete_path' => 'nodereferrer_create/autocomplete/'.$referrer_type, |
'#autocomplete_path' => 'nodereferrer_create/autocomplete/'.$referrer_type, |
| 51 |
'#default_value' => '' |
'#default_value' => '', |
| 52 |
|
'#maxlength' => 1024, // A Drupal title is maximum 255 chars ; but the autocomplete can be the result of a view. |
| 53 |
); |
); |
| 54 |
|
|
| 55 |
$form['submit'] = array( |
$form['submit'] = array( |