| 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. |
| 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( |
| 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']); |
| 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( |
| 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( |
| 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']); |
| 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( |
| 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 |
|
|
| 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 |
|
|