summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--print_pdf/print_pdf.admin.inc9
1 files changed, 1 insertions, 8 deletions
diff --git a/print_pdf/print_pdf.admin.inc b/print_pdf/print_pdf.admin.inc
index 9e41480..04c971f 100644
--- a/print_pdf/print_pdf.admin.inc
+++ b/print_pdf/print_pdf.admin.inc
@@ -224,16 +224,9 @@ function print_pdf_settings() {
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
- $descriptions = '';
- $tokens = token_get_list('node');
- foreach ($tokens as $token) {
- foreach ($token as $key => $val) {
- $descriptions .= '<dt>['. $key .']</dt><dd>'. $val ."</dd>\n";
- }
- }
$form['settings']['print_pdf_filename_patterns']['descriptions'] = array(
'#type' => 'markup',
- '#value' => "<dl>\n". $descriptions ."</dl>\n",
+ '#value' => theme('token_help', array('node', 'global')),
);
}
$form['#validate'][] = '_print_pdf_settings_validate';