Revision 9c9d11f7
Added by Andreas Kohlbecker over 9 years ago
7.x/modules/cdm_dataportal/cdm_api/cdm_api.module | ||
---|---|---|
844 | 844 |
switch($hook) { |
845 | 845 |
case 'cdm_taxontree': |
846 | 846 |
$variables = array( |
847 |
'tree' => $obj, |
|
848 |
'filterIncludes' => isset($args[0]) ? $args[0] : NULL, |
|
849 |
'show_filter_switch' => isset($args[1]) ? $args[1] : FALSE, |
|
850 |
'tree_node_callback' => isset($args[2]) ? $args[2] : FALSE, |
|
851 |
'element_name'=> isset($args[3]) ? $args[3] : FALSE, |
|
852 |
); |
|
847 |
'tree' => $obj,
|
|
848 |
'filterIncludes' => isset($args[0]) ? $args[0] : NULL,
|
|
849 |
'show_filter_switch' => isset($args[1]) ? $args[1] : FALSE,
|
|
850 |
'tree_node_callback' => isset($args[2]) ? $args[2] : FALSE,
|
|
851 |
'element_name'=> isset($args[3]) ? $args[3] : FALSE,
|
|
852 |
);
|
|
853 | 853 |
$reponse_data = theme($hook, $variables); |
854 | 854 |
break; |
855 | 855 |
|
856 |
case 'cdm_list_of_taxa': |
|
857 |
$variables = array( |
|
858 |
'records' => $obj, |
|
859 |
'freetextSearchResults' => isset($args[0]) ? $args[0] : array(), |
|
860 |
'show_classification' => isset($args[1]) ? $args[1] : FALSE); |
|
861 |
$reponse_data = theme($hook, $variables); |
|
862 |
break; |
|
863 |
|
|
856 | 864 |
case 'cdm_media_caption': |
857 | 865 |
$variables = array( |
858 | 866 |
'media' => $obj, |
... | ... | |
872 | 880 |
|
873 | 881 |
default: |
874 | 882 |
drupal_set_message(t( |
875 |
'Theme !theme is not supported yet by function !function.', array(
|
|
883 |
'Theme !theme is not yet supported by the function !function.', array(
|
|
876 | 884 |
'!theme' => $hook, |
877 | 885 |
'!function' => __FUNCTION__, |
878 | 886 |
)), 'error'); |
Also available in: Unified diff
fixing multiple issues for #4312 ([E+M] strange search result entries in turn to simple search for Anthyllis hamo*)