diff --git a/print.module b/print.module index 187078bd1214a96e99050374e998119162f05ebf..7892485647e31195a1ac2dac9444c3add9923d52 100644 --- a/print.module +++ b/print.module @@ -350,6 +350,10 @@ function print_form_alter(&$form, $form_state, $form_id) { '#collapsed' => TRUE, ); + if (function_exists('cck_extra_field_weight')) { + $form['print']['#weight'] = cck_extra_field_weight($form['type']['#value'], 'print'); + } + $form['print']['label'] = array( '#type' => 'markup', '#markup' => '

'. t('Printer-friendly version') .'

', @@ -383,6 +387,18 @@ function print_form_alter(&$form, $form_state, $form_id) { } } +/** + * Implementation of hook_cck_extra_fields. + */ +function print_cck_extra_fields($type_name) { + $fields['print'] = array( + 'label' => t('Printer, e-mail and PDF versions'), + 'description' => t('Print module form.'), + 'weight' => 50, + ); + return $fields; +} + /** * Auxiliary function to assign the per-node settings to the node object fields *