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

Diff of /contributions/modules/conference_organizing/conference_organizing.module

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

revision 1.8, Mon Oct 15 01:35:50 2007 UTC revision 1.9, Mon Nov 5 23:42:58 2007 UTC
# Line 1  Line 1 
1  <?php // $Id: conference_organizing.module,v 1.6 2007/09/07 01:07:23 zacker Exp $  <?php // $Id: conference_organizing.module,v 1.8 2007/10/15 01:35:50 zacker Exp $
2    
3  /**  /**
4   *  @file   *  @file
# Line 306  function conference_organizing_form_alte Line 306  function conference_organizing_form_alte
306          $form['title']['#value'] = $form['#node']->field_first_name[0]['value'] .' '. $form['#node']->field_last_name[0]['value'];          $form['title']['#value'] = $form['#node']->field_first_name[0]['value'] .' '. $form['#node']->field_last_name[0]['value'];
307        }        }
308        $form['body_filter']['format']['#attributes'] = array('style' => 'display: none;');        $form['body_filter']['format']['#attributes'] = array('style' => 'display: none;');
309    
310          // Deemphasize the OG Controls, Hidden Later for Non Admin Users
311          $form['og_nodeapi']['#collapsed'] = 1;
312      break;      break;
313      case 'discussion_node_form':      case 'discussion_node_form':
314        conference_organizing_form_alter_discussion_form($form);        conference_organizing_form_alter_discussion_form($form);
# Line 443  function conference_organizing_form_alte Line 446  function conference_organizing_form_alte
446    }    }
447    
448    // remove og controls if we are in group context and og forms exist    // remove og controls if we are in group context and og forms exist
449    if (isset($form['og_nodeapi']) && is_object($group)) {    if (isset($form['og_nodeapi']) && (is_object($group) || $form_id == 'bio_node_form')) {
450      conference_organizing_form_alter_hide_og($form, $group);      conference_organizing_form_alter_hide_og($form, $group);
451    }    }
452    
# Line 746  function theme_conference_organizing_con Line 749  function theme_conference_organizing_con
749    
750    
751    $post_conference .= drupal_render($form['field_post_conference']);    $post_conference .= drupal_render($form['field_post_conference']);
752    
753    $tabs['cod_conference']['post_conference'] = array(    // post conference tab
754      '#title' => t('Post Conference'),    if ($conference_node->field_post_conference) {
755      '#content' => $post_conference,      $tabs['cod_conference']['post_conference'] = array(
756      '#type' => 'tabpage',        '#title' => t('Post Conference'),
757    );        '#content' => $post_conference,
758          '#type' => 'tabpage',
759        );
760      }
761    
762    // Logistics tab    // Logistics tab
763    $logistics = drupal_render($form['group_logistics']);    $logistics = drupal_render($form['group_logistics']);
# Line 1033  function conference_organizing_nodeapi(& Line 1039  function conference_organizing_nodeapi(&
1039          }          }
1040        }        }
1041      break;      break;
1042      case 'validate':      case 'validate':
1043        if ($node->type == 'session') { // if its a session, verify some things        if ($node->type == 'session') { // if its a session, verify some things
1044    
1045          // Do some error checking for the start and the end time          // Do some error checking for the start and the end time
# Line 1094  function conference_organizing_nodeapi(& Line 1100  function conference_organizing_nodeapi(&
1100            }            }
1101          }          }
1102        }        }
1103    
1104        break;        break;
1105      case 'submit':      case 'submit':
1106        if ($node->type == 'session') {        if ($node->type == 'session') {
1107    
1108          // If the track isn't set, set it to default          // If the track isn't set, set it to default
1109          if (!($node->field_track[0]['value'])) {          if (!($node->field_track[0]['value'])) {
1110            $node->field_track[0]['value'] = 'Default Track';            $node->field_track[0]['value'] = 'Default Track';
1111          }          }
1112    
1113        }        }
1114        if ($node->type == 'webform' && !($node->nid > 0)) {        if ($node->type == 'webform' && !($node->nid > 0)) {
1115          $webformcomponents = array();          $webformcomponents = array();
# Line 1800  function conference_organizing_block_con Line 1809  function conference_organizing_block_con
1809        );        );
1810      }      }
1811      // if session proposals are allowed and conference isn't over show link      // if session proposals are allowed and conference isn't over show link
1812      if ((conference_organizing_time_until_conference($group->nid) < 0) && conference_organizing_access('see conference attendees', $group->nid, '', $user->uid)) {      if ((conference_organizing_time_until_conference($group->nid) < 0) && conference_organizing_access('see conference attendees', $group->nid, '', $user->uid) && $group->field_post_conference) {
1813        $links[] = array(        $links[] = array(
1814          'title' => t('Post Conference'),          'title' => t('Post Conference'),
1815          'href' => 'post_conference/'. $group->nid,          'href' => 'post_conference/'. $group->nid,
# Line 2721  function conference_organizing_schedule( Line 2730  function conference_organizing_schedule(
2730      );      );
2731    }    }
2732    if ($form['schedule'] == array('#type' => 'tabset')) {    if ($form['schedule'] == array('#type' => 'tabset')) {
2733      return t('No valid conference days were found.');      return t('No scheduled events were found.');
2734    } else {    } else {
2735      return '<div class="jstabs">'. tabs_render($form) .'</div>';      return '<div class="jstabs">'. tabs_render($form) .'</div>';
2736    }    }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.2