/[drupal]/contributions/modules/news/includes/news.form.inc
ViewVC logotype

Diff of /contributions/modules/news/includes/news.form.inc

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

revision 1.3, Sun May 3 01:58:41 2009 UTC revision 1.4, Fri May 15 14:35:15 2009 UTC
# Line 1  Line 1 
1  <?php // $Id: news.form.inc,v 1.2 2009/03/19 19:03:13 vauxia Exp $  <?php // $Id: news.form.inc,v 1.3 2009/05/03 01:58:41 vauxia Exp $
2    
3  /**  /**
4   * @file   * @file
# Line 26  function news_form($form_state, $nids = Line 26  function news_form($form_state, $nids =
26      '#send_nids' => ($nids && !is_array($nids)) ? explode(' ', $nids) : $nids,      '#send_nids' => ($nids && !is_array($nids)) ? explode(' ', $nids) : $nids,
27    );    );
28    
29    $form['send']['buttons']['test'] = array(    $form['buttons']['test'] = array(
30      '#type' => 'submit',      '#type' => 'submit',
31      '#value' => t('Send test message'),      '#value' => t('Send test message'),
32      '#submit' => array('news_form_test_delivery'),      '#submit' => array('news_form_test_delivery'),
33    );    );
34      $form['buttons']['submit'] = array(
35        '#type' => 'submit', '#value' => t('Send'),
36      );
37    
38    module_load_include('inc', 'send', 'includes/send.template');    module_load_include('inc', 'send', 'includes/send.template');
39    $options = array();    $options = array();
# Line 42  function news_form($form_state, $nids = Line 45  function news_form($form_state, $nids =
45      '#title'         => t('Template'),      '#title'         => t('Template'),
46      '#options'       => $options,      '#options'       => $options,
47      '#default_value' => send_value('template', 'news'),      '#default_value' => send_value('template', 'news'),
48        '#access'        => count($options) > 1,
49    );    );
50    
51    return $form;    return $form;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2