/[drupal]/contributions/modules/signup/signup_event_5.x-2.inc
ViewVC logotype

Diff of /contributions/modules/signup/signup_event_5.x-2.inc

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

revision 1.3, Wed Dec 26 17:34:04 2007 UTC revision 1.4, Fri Aug 1 07:51:02 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: signup_event_5.x-2.inc,v 1.2 2007/08/18 23:46:30 dww Exp $  // $Id: signup_event_5.x-2.inc,v 1.3 2007/12/26 17:34:04 dww Exp $
3    
4  /**  /**
5   * @return Array of SQL clauses for cron reminder email query builder.   * @return Array of SQL clauses for cron reminder email query builder.
# Line 84  function signup_extra_tokens() { Line 84  function signup_extra_tokens() {
84  function signup_format_date($node) {  function signup_format_date($node) {
85    return $node->event['start'] ? event_format_date(event_explode_date($node->event['start']), 'custom', variable_get('signup_date_string', 'D, M jS, g:i A')) : t('[Untimed]');    return $node->event['start'] ? event_format_date(event_explode_date($node->event['start']), 'custom', variable_get('signup_date_string', 'D, M jS, g:i A')) : t('[Untimed]');
86  }  }
87    
88    /**
89     * @return Bool: Is this node type date-enabled?
90     */
91    function signup_node_type_has_date($type) {
92      return variable_get('event_nodeapi_'. $type, 'never') != 'never';
93    }
94    
95    /**
96     * @return Bool: Is this specific node date-enabled?
97     */
98    function signup_node_has_date($node) {
99      return isset($node->event) && isset($node->event['start']);
100    }

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

  ViewVC Help
Powered by ViewVC 1.1.2