Project

General

Profile

Revision 868be375

ID868be37508b6bc5e9f4f7f15635421e7777d5f31
Parent 2f30124c
Child 6f6f79f6

Added by Katja Luther 11 months ago

remove blast tab if blast is not enabled

View differences:

modules/cdm_dataportal/includes/pages.inc
1069 1069

  
1070 1070
  $hidden_tabs = taxon_page_tabs_hidden_add();
1071 1071

  
1072
  if (!variable_get(CDM_SEARCH_BLAST_ENABLED)) {
1073
      foreach ($variables['primary'] as $key => &$element) {
1074
          if ($element['#link']['path'] == 'cdm_dataportal/search/blast' ) {
1075
            // remove the tab
1076
            unset($variables['primary'][$key]);
1077
          }
1078

  
1079
      }
1080
  }
1072 1081
  if (is_array($variables['primary'])) {
1073 1082
    foreach ($variables['primary'] as $key => &$element) {
1074 1083

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)