/[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.76.2.136, Wed Sep 9 13:32:06 2009 UTC revision 1.76.2.137, Sat Oct 24 16:30:44 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: simplenews.module,v 1.76.2.135 2009/09/02 22:24:53 sutharsan Exp $  // $Id: simplenews.module,v 1.76.2.136 2009/09/09 13:32:06 sutharsan Exp $
3    
4  /**  /**
5   * @defgroup simplenews   * @defgroup simplenews
# Line 495  function simplenews_form_alter(&$form, $ Line 495  function simplenews_form_alter(&$form, $
495        '#value' => t('This is the designated simplenews vocabulary.'),        '#value' => t('This is the designated simplenews vocabulary.'),
496        '#weight' => -1,        '#weight' => -1,
497      );      );
498      $form['content_types']['nodes']['#disabled'] = TRUE;      // We display the current content type settings in a disabled form element
499      $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
500        // disabled elements do not get saved at submit.
501        $form['content_types']['display_only'] = $form['content_types']['nodes'];
502        $form['content_types']['display_only']['#disabled'] = TRUE;
503        $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')));
504        $form['content_types']['nodes'] = array(
505          '#type' => 'value',
506          '#value' => $form['content_types']['nodes']['#default_value'],
507        );
508      // Free tagging can not be allowed see: simplenews_validate_taxonomy().      // Free tagging can not be allowed see: simplenews_validate_taxonomy().
509      $form['settings']['tags'] = array('#type' => 'value', '#value' => FALSE);      $form['settings']['tags'] = array('#type' => 'value', '#value' => FALSE);
510      // Multiple select does not work with simplenews.      // Multiple select does not work with simplenews.

Legend:
Removed from v.1.76.2.136  
changed lines
  Added in v.1.76.2.137

  ViewVC Help
Powered by ViewVC 1.1.2