| 1 |
<?php |
<?php |
| 2 |
// $Id: formupdater.module,v 1.5 2005/11/26 01:53:15 jjeff Exp $ |
// $Id: formupdater.module,v 1.6 2005/11/28 14:18:10 jjeff Exp $ |
| 3 |
|
|
| 4 |
function formupdater_help($section){ |
function formupdater_help($section){ |
| 5 |
switch($section){ |
switch($section){ |
| 25 |
$form['input'] = array('#type' => 'textarea', '#title'=> t('Drupal PHP code containing old form function calls'), '#rows' => 20); |
$form['input'] = array('#type' => 'textarea', '#title'=> t('Drupal PHP code containing old form function calls'), '#rows' => 20); |
| 26 |
$form['submit'] = array('#type' => 'submit', '#value' => 'submit'); |
$form['submit'] = array('#type' => 'submit', '#value' => 'submit'); |
| 27 |
$output = drupal_get_form('formupdater_input', $form); |
$output = drupal_get_form('formupdater_input', $form); |
| 28 |
$output .= str_replace(array('$RCSf'.'ile:', ',v', ',', '$Re'.'vision: ', '$Da'.'te: ', '$'), '', '<p style="font-size:x-small">$RCSfile: formupdater.module,v $ version: <b>$Revision: 1.5 $</b>, $Date: 2005/11/26 01:53:15 $</p>'); |
$output .= str_replace(array('$RCSf'.'ile:', ',v', ',', '$Re'.'vision: ', '$Da'.'te: ', '$'), '', '<p style="font-size:x-small">$RCSfile: formupdater.module,v $ version: <b>$Revision: 1.6 $</b>, $Date: 2005/11/28 14:18:10 $</p>'); |
| 29 |
return $output; |
return $output; |
| 30 |
} |
} |
| 31 |
|
|
| 55 |
$argsout[] = "'$key' => $val"; |
$argsout[] = "'$key' => $val"; |
| 56 |
} |
} |
| 57 |
$code .= implode(",\n ", $argsout); |
$code .= implode(",\n ", $argsout); |
| 58 |
$code .= "\n);"; |
$code .= ",\n);"; |
| 59 |
} |
} |
| 60 |
else { |
else { |
| 61 |
// this is a form() call |
// this is a form() call |