Index: restricted_content.admin.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/restricted_content/restricted_content.admin.inc,v retrieving revision 1.3 diff -u -p -r1.3 restricted_content.admin.inc --- restricted_content.admin.inc 3 Jan 2009 07:05:20 -0000 1.3 +++ restricted_content.admin.inc 1 Jun 2009 12:13:06 -0000 @@ -14,12 +14,18 @@ function restricted_content_settings_for '#default_value' => restricted_content_var('message_anon'), '#wysiyg' => FALSE, ); - if (module_exists('token')) { $form['tokens'] = array( '#value' => theme('token_help', 'node'), ); } + $form['restricted_content_restrict_teaser'] = array( + '#type' => 'checkbox', + '#title' => t('Restrict teaser content'), + '#description' => t('If this option is unchecked, content will not be restricted in teaser listings.'), + '#default_value' => restricted_content_var('restrict_teaser'), + ); + return system_settings_form($form); } Index: restricted_content.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/restricted_content/restricted_content.module,v retrieving revision 1.9 diff -u -p -r1.9 restricted_content.module --- restricted_content.module 30 Apr 2009 15:56:19 -0000 1.9 +++ restricted_content.module 1 Jun 2009 12:13:06 -0000 @@ -115,7 +123,9 @@ function restricted_content_nodeapi(&$no $message = token_replace($message, 'node', $node); } - $node->teaser = $message; + if (restricted_content_var('restrict_teaser')) { + $node->teaser = $message; + } $node->body = $message; } /*elseif ($op == 'alter' && !empty($node->restricted)) {