Changeset 9121

Show
Ignore:
Timestamp:
03/10/10 15:16:35 (3 years ago)
Author:
p_lindheimer
Message:

fixes module version reporting by pulling the version out of the proper place, waiting for feedback prior to publishing re #3994

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contributed_modules/modules/customcontexts/functions.inc.php

    r9116 r9121  
    44//used to get module information 
    55function customcontexts_getmodulevalue($id) { 
    6   global $db; 
     6global $db; 
     7 
     8switch ($id) { 
     9  case 'moduledisplayname': 
     10    $module_info = module_getinfo('customcontext'); 
     11    return($module_info['customcontext']['name']); 
     12    break; 
     13 
     14  case 'moduleversion': 
     15    $module_info = module_getinfo('customcontext'); 
     16    return($module_info['customcontext']['version']); 
     17    break; 
     18 
     19  default: 
    720  $sql = "select value from customcontexts_module where id = '$id'"; 
    821  $results = $db->getAll($sql); 
     
    1023    $results = null; 
    1124  return isset($results)?$results[0][0]:null; 
     25  } 
    1226} 
    1327