| 1 |
<?php |
<?php |
| 2 |
// $Id: casetracker_services.module,v 1.2.2.5 2008/03/29 19:51:54 sime Exp $ |
// $Id: casetracker_services.module,v 1.2.2.8 2008/04/04 05:28:49 sime Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_menu(). |
* Implementation of hook_menu(). |
| 212 |
} |
} |
| 213 |
|
|
| 214 |
function casetracker_services_project_types($check_type = null) { |
function casetracker_services_project_types($check_type = null) { |
| 215 |
$types = variable_get('casetracker_project_node_types', 'casetracker_basic_project'); |
$types = variable_get('casetracker_project_node_types', array('casetracker_basic_project')); |
| 216 |
foreach ($types as $t => $type) { |
foreach ($types as $t => $type) { |
| 217 |
if (!$type) { |
if (!$type) { |
| 218 |
unset($types[$t]); |
unset($types[$t]); |
| 224 |
return $types; |
return $types; |
| 225 |
} |
} |
| 226 |
function casetracker_services_case_types($check_type = null) { |
function casetracker_services_case_types($check_type = null) { |
| 227 |
$types = variable_get('casetracker_case_node_types', 'casetracker_basic_case'); |
$types = variable_get('casetracker_case_node_types', array('casetracker_basic_case')); |
| 228 |
foreach ($types as $t => $type) { |
foreach ($types as $t => $type) { |
| 229 |
if (!$type) { |
if (!$type) { |
| 230 |
unset($types[$t]); |
unset($types[$t]); |