function print_form_alter(&$form, $form_state, $form_id) {
// Add the node-type settings option to activate the printer-friendly version link
if ($form_id == 'node_type_form') {
- $form['workflow']['print_display'] = array(
+ $form['print'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Printer-friendly pages'),
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE,
+ );
+
+ $form['print']['print_display'] = array(
'#type' => 'checkbox',
'#title' => t('Show printer-friendly version link'),
'#default_value' => variable_get('print_display_'. $form['#node_type']->type, 1),
'#description' => t('Displays the link to a printer-friendly version of the content. Further configuration is available on the !settings.', array('!settings' => l(t('settings page'), 'admin/settings/print' ))),
);
- $form['comment']['print_display_comment'] = array(
+ $form['print']['print_display_comment'] = array(
'#type' => 'checkbox',
'#title' => t('Show printer-friendly version link in individual comments'),
'#default_value' => variable_get('print_display_comment_'. $form['#node_type']->type, 0),
function print_mail_form_alter(&$form, $form_state, $form_id) {
// Add the node-type settings option to activate the mail version link
if ($form_id == 'node_type_form') {
- $form['workflow']['print_mail_display'] = array(
+ $form['print']['print_mail_display'] = array(
'#type' => 'checkbox',
'#title' => t('Show send by e-mail link'),
'#default_value' => variable_get('print_mail_display_'. $form['#node_type']->type, 1),
'#description' => t('Displays a link to send the content by e-mail. Further configuration is available on the !settings.', array('!settings' => l(t('settings page'), 'admin/settings/print' ))),
);
- $form['comment']['print_mail_display_comment'] = array(
+ $form['print']['print_mail_display_comment'] = array(
'#type' => 'checkbox',
'#title' => t('Show send by e-mail link in individual comments'),
'#default_value' => variable_get('print_mail_display_comment_'. $form['#node_type']->type, 0),
function print_pdf_form_alter(&$form, $form_state, $form_id) {
// Add the node-type settings option to activate the PDF version link
if ($form_id == 'node_type_form') {
- $form['workflow']['print_pdf_display'] = array(
+ $form['print']['print_pdf_display'] = array(
'#type' => 'checkbox',
'#title' => t('Show PDF version link'),
'#default_value' => variable_get('print_pdf_display_'. $form['#node_type']->type, 1),
'#description' => t('Displays the link to a PDF version of the content. Further configuration is available on the !settings.', array('!settings' => l(t('settings page'), 'admin/settings/print' ))),
);
- $form['comment']['print_pdf_display_comment'] = array(
+ $form['print']['print_pdf_display_comment'] = array(
'#type' => 'checkbox',
'#title' => t('Show PDF version link in individual comments'),
'#default_value' => variable_get('print_pdf_display_comment_'. $form['#node_type']->type, 0),