cdm-dataportal/modules/cdm_dataportal/cdm_api/cdm_api.api.php @ 991ae630
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* @file
|
5 |
* Hooks provided by the CDM API module.
|
6 |
*/
|
7 |
|
8 |
/**
|
9 |
* @addtogroup hooks
|
10 |
* @{
|
11 |
*/
|
12 |
|
13 |
/**
|
14 |
* Define cdm specific node types.
|
15 |
*
|
16 |
* Modules implementing this hook can add cdm specific node types
|
17 |
*
|
18 |
*/
|
19 |
function hook_cdm_nodetypes() { |
20 |
static $nodetypes; |
21 |
if (!$nodetypes) { |
22 |
$nodetypes = array( |
23 |
'cdm_treference' => 'reference', |
24 |
'cdm_taxon' => 'taxon', |
25 |
);
|
26 |
}
|
27 |
return $nodetypes; |
28 |
}
|
29 |
|
30 |
/**
|
31 |
* @} End of "addtogroup hooks".
|
32 |
*/
|