/[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.137, Sat Oct 24 16:30:44 2009 UTC revision 1.76.2.138, Sat Oct 24 16:49:38 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: simplenews.module,v 1.76.2.136 2009/09/09 13:32:06 sutharsan Exp $  // $Id: simplenews.module,v 1.76.2.137 2009/10/24 16:30:44 sutharsan Exp $
3    
4  /**  /**
5   * @defgroup simplenews   * @defgroup simplenews
# Line 345  function simplenews_nodeapi(&$node, $op, Line 345  function simplenews_nodeapi(&$node, $op,
345        break;        break;
346      case 'validate':      case 'validate':
347        $vid = variable_get('simplenews_vid', '');        $vid = variable_get('simplenews_vid', '');
348        if (!isset($node->taxonomy[$vid]) || (isset($node->taxonomy[$vid]) && !empty($node->taxonomy[$vid]) && simplenews_validate_taxonomy($node->taxonomy) == FALSE)) {        if (!isset($node->taxonomy[$vid]) || empty($node->taxonomy[$vid]) || simplenews_validate_taxonomy($node->taxonomy) == FALSE) {
349          form_set_error('taxonomy', t('No newsletter term is selected, the newsletter taxonomy term is probably not configured correctly.<br /> Check and <strong>save</strong> the <a href="@settings">Simplenews general settings</a>.', array('%name' => $vocabulary->name, '@settings' => url('admin/settings/simplenews/general'))));          form_set_error('taxonomy', t('No newsletter term is selected, the newsletter taxonomy term is probably not configured correctly.<br /> Check and <strong>save</strong> the <a href="@settings">Simplenews general settings</a>.', array('%name' => $vocabulary->name, '@settings' => url('admin/settings/simplenews/general'))));
350        }        }
351        elseif (isset($node->simplenews['send']) && $node->simplenews['send'] == SIMPLENEWS_COMMAND_SEND_TEST) {        elseif (isset($node->simplenews['send']) && $node->simplenews['send'] == SIMPLENEWS_COMMAND_SEND_TEST) {

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

  ViewVC Help
Powered by ViewVC 1.1.2