Project

General

Profile

« Previous | Next » 

Revision bf910101

Added by Andreas Kohlbecker over 16 years ago

View differences:

modules/cdm_dataportal/cdm_dataportal.module
7 7
/* ====================== hook implementations ====================== */ 
8 8

  
9 9
/**
10
 * Implementation of hook_help
10
 * Implementation of hook_help()
11
 * 
11 12
 * Display help and module information
12 13
 * @param section which section of the site we're displaying help
13 14
 * @return help text for section
......
25 26

  
26 27

  
27 28
/**
28
 * Implementation of hook_perm
29
 * Implementation of hook_perm()
30
 * 
29 31
 * Valid permissions for this module
30 32
 * @return array An array of valid permissions for the portfolio module
31 33
 */
......
39 41

  
40 42

  
41 43
/**
42
 * Implementation of hook_menu
44
 * Implementation of hook_menu()
43 45
 */
44 46
function cdm_dataportal_menu($may_cache) {
45 47
  $items = array();
......
105 107
 * @param String $page page number to diplay defaults to page 1
106 108
 * @param boolean $hide_unaccepted whether to hide nams which are not accepted by the current view
107 109
 */
108
function cdm_dataportal_view_names($page = 1, $hide_unaccepted = false ){
110
function cdm_dataportal_view_names($page = 1, $onlyAccepted = false ){
109 111
  
110
    $names = cdm_ws_list_names($page = 1, $hide_unaccepted);
111
    $out = theme('cdm_dataportal_widget_names_list', $hide_unaccepted);
112
    $names = cdm_ws_name_list($page = 1, $onlyAccepted);
113
    /*   
114
     * FIXME the filter for accepted names will be form element, thus this widget 
115
     * should be generated via form api!
116
     */
117
    $out = theme('cdm_dataportal_widget_filter_accepted', $onlyAccepted);
118
    $out .= theme('cdm_dataportal_widget_names_list', $names, $page);
112 119
    $out .= theme('cdm_dataportal_names_list', $names, $page);
113 120
    return $out;
114 121
}
......
122 129
 * @param $name_uuid the $name_uuid of the taxon name 
123 130
 */
124 131
function cdm_dataportal_view_taxon($name_uuid){
125
  
132
  //FIXME this is a dummy implementation
133
  $name = cdm_ws_get_name();
134
  return theme('cdm_name', $name);
135
  // END of dummy implementation
126 136
}
127 137
 
128 138

  

Also available in: Unified diff