| 1 |
<?php |
<?php |
| 2 |
// $Id: comms.module,v 1.1.4.22 2009/09/23 07:55:59 evoltech Exp $ |
// $Id: comms.module,v 1.1.4.23 2009/09/23 21:27:32 evoltech Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 365 |
// this comms node. |
// this comms node. |
| 366 |
foreach ($node->taxonomy[$vid] as $term_id) { |
foreach ($node->taxonomy[$vid] as $term_id) { |
| 367 |
$gids = _comms_get_gids_by_tid($term_id); |
$gids = _comms_get_gids_by_tid($term_id); |
|
//dpm('$gids associated with '. $term_id .': '. implode(', ', $gids)); |
|
| 368 |
if (!is_array($gids) || $gids == -1) { |
if (!is_array($gids) || $gids == -1) { |
| 369 |
drupal_set_message(t('comms_submit', 'We are unable to process this submission because there is a critical problem with the tapatio module. Please contact an admin and try again later'), 'error', FALSE); |
drupal_set_message(t('comms_submit', 'We are unable to process this submission because there is a critical problem with the tapatio module. Please contact an admin and try again later'), 'error', FALSE); |
| 370 |
return; |
return; |
| 375 |
} |
} |
| 376 |
} |
} |
| 377 |
} |
} |
|
dpm('$node->og_groups: '. print_r($node->og_groups, 1)); |
|
| 378 |
} |
} |
| 379 |
|
|
| 380 |
function comms_form(&$node) { |
function comms_form(&$node) { |