function boost_drupal_get_installed_schema_version in Boost 6
Returns the currently installed schema version for a module.
Parameters
$module: A module name.
$reset: Set to TRUE after modifying the system table.
$array: Set to TRUE if you want to get information about all modules in the system.
Return value
The currently installed schema version.
See also
drupal_get_installed_schema_version()
1 call to boost_drupal_get_installed_schema_version()
- boost_has_site_changed in ./
boost.module - Checks various timestamps in the database.
File
- ./
boost.module, line 4380 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function boost_drupal_get_installed_schema_version($module, $reset = FALSE, $array = FALSE) {
static $versions = array();
if ($reset) {
$versions = array();
}
if (!$versions) {
$versions = array();
$result = db_query("SELECT name, schema_version FROM {system} WHERE type = '%s'", 'module');
while ($row = db_fetch_object($result)) {
$versions[$row->name] = $row->schema_version;
}
}
return $array ? $versions : $versions[$module];
}