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

Diff of /contributions/modules/webform2pdf/webform2pdf.module

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

revision 1.1.2.4, Wed Sep 23 14:26:38 2009 UTC revision 1.1.2.5, Mon Oct 19 12:59:11 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: webform2pdf.module,v 1.1.2.3 2009/07/28 08:57:14 york Exp $  // $Id: webform2pdf.module,v 1.1.2.4 2009/09/23 14:26:38 york Exp $
3    
4  /**  /**
5   * Ha be van kapcsolva a PFD generalas akkor jelenik meg a menupont.   * Ha be van kapcsolva a PFD generalas akkor jelenik meg a menupont.
# Line 265  function webform2pdf_admin_settings() { Line 265  function webform2pdf_admin_settings() {
265      '#rows' => '5',      '#rows' => '5',
266      '#default_value' => $default['h_txt'],      '#default_value' => $default['h_txt'],
267      '#resizable' => FALSE,      '#resizable' => FALSE,
268      '#description' => t("PDF header text. 5 rows maximum."),      '#description' => t("PDF header text. 5 rows maximum.") . theme('webform_token_help'),
269    );    );
270    
271    $form['header']['h_txt_align'] = array(    $form['header']['h_txt_align'] = array(
# Line 347  function webform2pdf_admin_settings() { Line 347  function webform2pdf_admin_settings() {
347      '#rows' => '10',      '#rows' => '10',
348      '#default_value' => $default['p_body'],      '#default_value' => $default['p_body'],
349      '#description' => t("The content of the PDF file can be defined here, the text can be formatted with HTML and CSS tags. The form elements can be referred with the following special strings: !vars."      '#description' => t("The content of the PDF file can be defined here, the text can be formatted with HTML and CSS tags. The form elements can be referred with the following special strings: !vars."
350      , array('!vars' => '%pagebreak')),      , array('!vars' => '%pagebreak')) . theme('webform_token_help'),
351    );    );
352    
353    $form['page']['format'] = filter_form($default['format']);    $form['page']['format'] = filter_form($default['format']);
# Line 431  function webform2pdf_admin_settings() { Line 431  function webform2pdf_admin_settings() {
431      '#rows' => '2',      '#rows' => '2',
432      '#default_value' => $default['f_txt'],      '#default_value' => $default['f_txt'],
433      '#resizable' => FALSE,      '#resizable' => FALSE,
434      '#description' => t("The PDF footer text. 2 rows maximum. The following special element can be used: %pagenumber - number of the page, %totalpage - total page count."),      '#description' => t("The PDF footer text. 2 rows maximum. The following special element can be used: %pagenumber - number of the page, %totalpage - total page count.") . theme('webform_token_help'),
435    );    );
436    
437    $form['footer']['f_txt_align'] = array(    $form['footer']['f_txt_align'] = array(
# Line 690  function webform2pdf_edit_form($form_sta Line 690  function webform2pdf_edit_form($form_sta
690        '#rows' => '5',        '#rows' => '5',
691        '#default_value' => $default['h_txt'],        '#default_value' => $default['h_txt'],
692        '#resizable' => FALSE,        '#resizable' => FALSE,
693        '#description' => t("PDF header text. 5 rows maximum."),        '#description' => t("PDF header text. 5 rows maximum.") . theme('webform_token_help'),
694      );      );
695    
696      $form['header']['h_txt_align'] = array(      $form['header']['h_txt_align'] = array(
# Line 775  function webform2pdf_edit_form($form_sta Line 775  function webform2pdf_edit_form($form_sta
775        '#rows' => '10',        '#rows' => '10',
776        '#default_value' => $default['p_body'],        '#default_value' => $default['p_body'],
777        '#description' => t("The content of the PDF file can be defined here, the text can be formatted with HTML and CSS tags. The form elements can be referred with the following special strings: !vars. Select form elements can be outputted in different ways, write one of the following strings after the element name to choose from them: '-nl', '-all', '-nl-all'. '-nl ' modifier writes every selected element into a new line, '-all' lists every option, and marks which were selected from them. '-nl-all' lists all of the options in separate lines, and marks selected ones."        '#description' => t("The content of the PDF file can be defined here, the text can be formatted with HTML and CSS tags. The form elements can be referred with the following special strings: !vars. Select form elements can be outputted in different ways, write one of the following strings after the element name to choose from them: '-nl', '-all', '-nl-all'. '-nl ' modifier writes every selected element into a new line, '-all' lists every option, and marks which were selected from them. '-nl-all' lists all of the options in separate lines, and marks selected ones."
778        , array('!vars' => implode(', ', $tokens ))),        , array('!vars' => implode(', ', $tokens ))) . theme('webform_token_help'),
779      );      );
780    
781      $form['page']['format'] = filter_form($default['format']);      $form['page']['format'] = filter_form($default['format']);
# Line 859  function webform2pdf_edit_form($form_sta Line 859  function webform2pdf_edit_form($form_sta
859        '#rows' => '2',        '#rows' => '2',
860        '#default_value' => $default['f_txt'],        '#default_value' => $default['f_txt'],
861        '#resizable' => FALSE,        '#resizable' => FALSE,
862        '#description' => t("The PDF footer text. 2 rows maximum. The following special element can be used: %pagenumber - number of the page, %totalpage - total page count."),        '#description' => t("The PDF footer text. 2 rows maximum. The following special element can be used: %pagenumber - number of the page, %totalpage - total page count.") . theme('webform_token_help'),
863      );      );
864    
865      $form['footer']['f_txt_align'] = array(      $form['footer']['f_txt_align'] = array(
# Line 1183  function _webform2pdf_list_template_vars Line 1183  function _webform2pdf_list_template_vars
1183        break;        break;
1184      }      }
1185    }    }
1186      $tokens[] = '%nid';
1187      $tokens[] = '%sid';
1188    return $tokens;    return $tokens;
1189  } // function _webform2pdf_list_template_vars()  } // function _webform2pdf_list_template_vars()
1190    
# Line 1308  function _webform2pdf_get_template_vars( Line 1310  function _webform2pdf_get_template_vars(
1310        }        }
1311      }      }
1312    }    }
1313      // node id
1314      $tokens['%nid'] = $node->nid;
1315      // submission id
1316      $tokens['%sid'] = $submission->sid;
1317    return $tokens;    return $tokens;
1318  } // function _webform2pdf_get_template_vars()  } // function _webform2pdf_get_template_vars()
1319    

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

  ViewVC Help
Powered by ViewVC 1.1.2