summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2011-03-04 03:19:31 (GMT)
committer Joao Ventura2011-03-04 03:19:31 (GMT)
commit2403d9c4993b113f6c52007abc72b9512d499d93 (patch)
tree1024bf55cbe93ce5a274e77541a2832752479476
parent6c1dfcb58780d29f7715eea62f688b223a3f5fd1 (diff)
Issue #938838: move checkbox settings lower
-rw-r--r--print_pdf/print_pdf.admin.inc13
-rw-r--r--print_pdf/print_pdf.module2
2 files changed, 7 insertions, 8 deletions
diff --git a/print_pdf/print_pdf.admin.inc b/print_pdf/print_pdf.admin.inc
index d7b2f97..1df1222 100644
--- a/print_pdf/print_pdf.admin.inc
+++ b/print_pdf/print_pdf.admin.inc
@@ -33,13 +33,6 @@ function print_pdf_settings() {
'#description' => t('This option selects the PDF generation tool being used by this module to create the PDF version.'),
);
- $form['settings']['print_pdf_tcpdf_subsetting'] = array(
- '#type' => 'checkbox',
- '#title' => t('Enable TCPDF font subsetting'),
- '#default_value' => variable_get('print_pdf_tcpdf_subsetting', PRINT_PDF_TCPDF_SUBSETTING_DEFAULT),
- '#description' => t('Only embed those font characters that are actually used. This can generates smaller PDF files but may significantly slow down processing. This option has no effect unless TCPDF is selected above.'),
- );
-
$form['settings']['print_pdf_link_pos'] = array(
'#type' => 'checkboxes',
'#title' => t('PDF version link'),
@@ -214,6 +207,12 @@ function print_pdf_settings() {
'#maxlength' => 3,
'#description' => t('(TCPDF only) Set the font size to be used for normal text. This is the base value for the scaling applied to other text styles.'),
);
+ $form['settings']['print_pdf_font_subsetting'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Enable font subsetting'),
+ '#default_value' => variable_get('print_pdf_font_subsetting', PRINT_PDF_FONT_SUBSETTING_DEFAULT),
+ '#description' => t('(TCPDF only) Only embed those font characters that are actually used. This can generates smaller PDF files but may significantly slow down processing.'),
+ );
$form['settings']['print_pdf_dompdf_unicode'] = array(
'#type' => 'checkbox',
'#title' => t("Use dompdf's Unicode Mode"),
diff --git a/print_pdf/print_pdf.module b/print_pdf/print_pdf.module
index dbf7d25..8d64f5a 100644
--- a/print_pdf/print_pdf.module
+++ b/print_pdf/print_pdf.module
@@ -30,10 +30,10 @@ define('PRINT_PDF_PAGE_ORIENTATION_DEFAULT', 'portrait');
define('PRINT_PDF_AUTOCONFIG_DEFAULT', 1);
define('PRINT_PDF_FONT_FAMILY_DEFAULT', 'dejavusans');
define('PRINT_PDF_FONT_SIZE_DEFAULT', 10);
+define('PRINT_PDF_FONT_SUBSETTING_DEFAULT', 0);
define('PRINT_PDF_FILENAME_DEFAULT', '[site-name] - [title] - [mod-yyyy]-[mod-mm]-[mod-dd]');
define('PRINT_PDF_DOMPDF_UNICODE_DEFAULT', 0);
define('PRINT_PDF_WKHTMLTOPDF_OPTIONS', "--footer-font-size 7 --footer-right '[page]'");
-define('PRINT_PDF_TCPDF_SUBSETTING_DEFAULT', 0);
/**
* Implementation of hook_perm().