Project

General

Profile

« Previous | Next » 

Revision 81df545f

Added by Andreas Kohlbecker about 14 years ago

View differences:

modules/cdm_dataportal/cdm_taxontree/cdm_taxontree.module
26 26
    );
27 27
    
28 28
     $items[] = array(
29
      //'path' => 'cdm_dataportal/filter', 
29

  
30 30
      'path' => 'cdm_taxontree/filter', 
31 31
      'callback' => 'cdm_taxontree_view_filter',
32 32
      'access' => true,
......
34 34
    );
35 35
    
36 36
    $items[] = array(
37
      //'path' => 'cdm_dataportal/filter', 
38 37
      'path' => 'cdm_taxontree/taxonomy/children', 
39 38
      'callback' => 'cdm_taxontree_taxonomy_children',
40 39
      'access' => true,
......
706 705
 * @param unknown_type $taxonUuid
707 706
 * @return unknown
708 707
 */
709
function cdm_dataportal_view_filter($op, $taxonUuid = null){
708
function cdm_taxontree_view_filter($op, $taxonUuid = null){
710 709
  
711 710
  if(!isset($_SESSION['cdm']['filters'])){
712 711
    $_SESSION['cdm']['filters'] = array();
......
714 713
  if($taxonUuid || $op == 'list'){
715 714
    switch($op){
716 715
      case 'add':
717
        cdm_dataportal_filters_add($taxonUuid);
716
        cdm_taxontree_filters_add($taxonUuid);
718 717
        break;
719 718
      case 'remove':
720
        cdm_dataportal_filters_remove($taxonUuid);
719
        cdm_taxontree_filters_remove($taxonUuid);
721 720
        break;
722 721
      case 'list':
723
        //TODO put in theme!!!
722
        //TODO put in cdm_dataportal_theme to decouple both modules by this!!!
724 723
        $out = '<ul>';
725 724
        foreach($_SESSION['cdm']['filters'] as $uuid=>$node){
726 725
          $out .= '<li>'.cdm_dataportal_shortname_of($node).' '.l('[x]', 'cdm_dataportal/filter/remove/'.$uuid, array(), drupal_get_destination()).'</li>';

Also available in: Unified diff