Project

General

Profile

« Previous | Next » 

Revision beb914ef

Added by Andreas Kohlbecker over 7 years ago

fix #5943 back to search button/link moved to drupal block

View differences:

modules/cdm_dataportal/cdm_dataportal.module
811 811
    // $block[0]["info"] = t("CDM DataPortal DevLinks");
812 812
    // $block[1]["info"] = t("CDM DataPortal Credits");
813 813
    $block["2"] = array(
814
        "info" => t("CDM Search Taxa"),
814
        "info" => t("CDM - Search Taxa"),
815 815
        "cache" => DRUPAL_NO_CACHE
816 816
      );
817 817
    // $block[3]["info"] = t("CDM Filters");
818
    $block["4"]["info"] = t("CDM Dataportal Print");
819
    $block["keys"]["info"] = t("CDM identification keys");
818
    $block["4"]["info"] = t("CDM  - Dataportal Print");
819
    $block["keys"]["info"] = t("CDM - Identification keys");
820 820
    $block["fundedByEDIT"]["info"] = t('Funded by EDIT');
821 821
    $block["classification_breadcrumbs"] =  array(
822
        'info' => t('Classification breadcrumbs'),
822
        'info' => t('CDM - Classification breadcrumbs'),
823 823
        'cache' => DRUPAL_CACHE_PER_PAGE
824 824
      );
825 825
    $block["taxonomic_children"] =  array(
826
      'info' => t('Taxonomic children'),
826
      'info' => t('CDM - Taxonomic children'),
827 827
      'cache' => DRUPAL_CACHE_PER_PAGE
828 828
    );
829
    $block["back_to_search_results"] =  array(
830
      'title' => '<none>',
831
      'info' => t('CDM - Back to search Results'),
832
      'cache' => DRUPAL_CACHE_PER_PAGE,
833
      'visibility' => BLOCK_VISIBILITY_LISTED,
834
      'pages' => "cdm_dataportal/taxon/*", // multiple page paths separated by "\n"!!!
835
    );
829 836

  
830 837
    return $block;
831 838
}
......
878 885
      $block['subject'] = '<none>';
879 886
      $block['content'] = compose_taxonomic_children($taxon_uuid);
880 887
      return $block;
888
    case 'back_to_search_results':
889
      $block['subject'] = '<none>';
890
      if (isset($_SESSION['cdm']['search'])) {
891
        $block['content'] = l(t('Back to search result'), "http://" . $_SERVER['SERVER_NAME'] . $_SESSION['cdm']['last_search']);
892
      }
893
      return $block;
894
    default:
895
      return null;
881 896
  }
882 897
}
883 898

  

Also available in: Unified diff