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

Diff of /contributions/modules/mlm/mlm.module

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

revision 1.52, Sun Aug 23 23:06:27 2009 UTC revision 1.53, Wed Aug 26 02:51:34 2009 UTC
# Line 1  Line 1 
1  <?php // $Id: mlm.module,v 1.51 2009/08/10 01:57:46 vauxia Exp $  <?php // $Id: mlm.module,v 1.52 2009/08/23 23:06:27 vauxia Exp $
2    
3  /**  /**
4   * @file   * @file
# Line 109  function mlm_elements() { Line 109  function mlm_elements() {
109        '#input' => TRUE,        '#input' => TRUE,
110        '#process' => array('mlm_element_process'),        '#process' => array('mlm_element_process'),
111        '#mlm_lists' => array(),        '#mlm_lists' => array(),
112        '#mlm_options' => array(),        '#mlm_settings' => array(),
113      ),      ),
114    );    );
115  }  }
# Line 254  function mlm_block_form($form_state, $li Line 254  function mlm_block_form($form_state, $li
254  }  }
255    
256  /**  /**
257     * Form handler for a list you're viewing.
258     */
259    function mlm_view_form($form_state, $mlm) {
260      $form['mlm'] = array(
261        '#type' => 'mlm_subscription',
262        '#mlm_lists' => array($mlm),
263        '#mlm_settings' => array(
264          'show_mail' => FALSE,
265          'single' => TRUE,
266        ),
267      );
268      $form['submit'] = array(
269        '#type' => 'submit',
270        '#value' => $mlm->_is_subscribed() ? t('unsubscribe') : t('subscribe'),
271      );
272      return $form;
273    }
274    
275    /**
276   * Implementation of hook_theme().   * Implementation of hook_theme().
277   */   */
278  function mlm_theme() {  function mlm_theme() {

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.2