/[drupal]/contributions/modules/simplenews/simplenews.module
ViewVC logotype

Diff of /contributions/modules/simplenews/simplenews.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.215, Wed Sep 30 14:10:20 2009 UTC revision 1.216, Sat Oct 24 16:30:09 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: simplenews.module,v 1.214 2009/08/30 12:49:50 sutharsan Exp $  // $Id: simplenews.module,v 1.215 2009/09/30 14:10:20 sutharsan Exp $
3    
4  /**  /**
5   * @defgroup simplenews   * @defgroup simplenews
# Line 492  function simplenews_form_alter(&$form, $ Line 492  function simplenews_form_alter(&$form, $
492        '#value' => t('This is the designated simplenews vocabulary.'),        '#value' => t('This is the designated simplenews vocabulary.'),
493        '#weight' => -1,        '#weight' => -1,
494      );      );
495      $form['content_types']['nodes']['#disabled'] = TRUE;      // We display the current content type settings in a disabled form element
496      $form['content_types']['nodes']['#description'] = t('These content type(s) are used as newsletter. They can also be set in !simplenews_settings.', array('!simplenews_settings' => l('Simplenews settings', 'admin/settings/simplenews')));      // to the user. The real value passed in the form separately because
497        // disabled elements do not get saved at submit.
498        $form['content_types']['display_only'] = $form['content_types']['nodes'];
499        $form['content_types']['display_only']['#disabled'] = TRUE;
500        $form['content_types']['display_only']['#description'] = t('These content type(s) are used as newsletter. They can be set in !simplenews_settings.', array('!simplenews_settings' => l('Simplenews settings', 'admin/settings/simplenews')));
501        $form['content_types']['nodes'] = array(
502          '#type' => 'value',
503          '#value' => $form['content_types']['nodes']['#default_value'],
504        );
505      // Free tagging can not be allowed see: simplenews_validate_taxonomy().      // Free tagging can not be allowed see: simplenews_validate_taxonomy().
506      $form['settings']['tags'] = array('#type' => 'value', '#value' => FALSE);      $form['settings']['tags'] = array('#type' => 'value', '#value' => FALSE);
507      // Multiple select does not work with simplenews.      // Multiple select does not work with simplenews.

Legend:
Removed from v.1.215  
changed lines
  Added in v.1.216

  ViewVC Help
Powered by ViewVC 1.1.2