Project

General

Profile

Revision 6b5815cd

ID6b5815cdf7f5707e90740fba4bd1b0594c3eeedf
Parent 6ab41d7b
Child 42f2e1e0

Added by Andreas Kohlbecker over 8 years ago

compacting display of cdm debug block

View differences:

7.x/modules/cdm_dataportal/cdm_api/cdm_api.module
82 82
  switch ($delta) {
83 83
    case 'cdm_ws_debug':
84 84

  
85
    $cdm_ws_url = variable_get('cdm_webservice_url', '');
86

  
85 87
    $field_map = array(
86
        'ws_uri' => t('URI'),
88
        'ws_uri' => t('URI') . ' <code>(' . $cdm_ws_url .'...)</code>',
87 89
        'time' => t('Time'),
88 90
        'fetch_seconds' => t('Fetching [s]'),
89 91
        'parse_seconds' => t('Parsing [s]'),
......
102 104
    $rows = array();
103 105

  
104 106
    foreach ($_SESSION['cdm']['ws_debug'] as $data){
105
      $cells = array();
107

  
106 108
      $data = unserialize($data);
109

  
110
      // stip of webservice base url
111
      $data['ws_uri'] = str_replace($cdm_ws_url, '', $data['ws_uri']);
112

  
113
      $cells = array();
107 114
      foreach ($field_map as $field => $label){
108 115
        $cells[] = '<td class="' . $field . '">' .  $data[$field] . '</td>';
109 116
      }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)