/[drupal]/contributions/modules/formupdater/formupdater.module
ViewVC logotype

Diff of /contributions/modules/formupdater/formupdater.module

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

revision 1.6, Mon Nov 28 14:18:10 2005 UTC revision 1.7, Mon Nov 28 23:09:37 2005 UTC
# Line 1  Line 1 
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){
# Line 25  function formupdater_page(){ Line 25  function formupdater_page(){
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    
# Line 55  function formupdater_process($edit){ Line 55  function formupdater_process($edit){
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

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.2