Index: modules/node/content_types.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/node/content_types.inc,v retrieving revision 1.47 diff -u -p -r1.47 content_types.inc --- modules/node/content_types.inc 28 Nov 2007 10:29:20 -0000 1.47 +++ modules/node/content_types.inc 20 Dec 2007 18:15:09 -0000 @@ -161,6 +161,13 @@ function node_type_form(&$form_state, $t ), '#description' => t('Users with the administer nodes permission will be able to override these options.'), ); + $form['workflow']['node_info'] = array( + '#type' => 'radios', + '#title' => t('Display post information'), + '#default_value' => theme_get_setting('toggle_node_info_'. $type->type), + '#options' => array(t('Disabled'), t('Enabled')), + '#description' => t('Enable or disable the submitted by Username on date text when displaying posts.'), + ); $form['old_type'] = array( '#type' => 'value', @@ -295,7 +302,12 @@ function node_type_form_submit($form, &$ } } - unset($variables['form_token'], $variables['op'], $variables['submit'], $variables['delete'], $variables['reset'], $variables['form_id']); + // Save post information (display date and author) setting. + $theme_settings = variable_get('theme_settings', array()); + $theme_settings['toggle_node_info_'. $type->type] = $variables['node_info']; + variable_set('theme_settings', $theme_settings); + + unset($variables['node_info'], $variables['form_token'], $variables['op'], $variables['submit'], $variables['delete'], $variables['reset'], $variables['form_id']); // Save or reset persistent variable values. foreach ($variables as $key => $value) {