You are here

function fivestar_update_version in Fivestar 6

Same name and namespace in other branches
  1. 5 fivestar.install \fivestar_update_version()
  2. 6.2 fivestar.install \fivestar_update_version()

Function to retrieve the current version to prevent duplicate updates.

3 calls to fivestar_update_version()
fivestar_update_6102 in ./fivestar.install
Set Fivestar weight to -1 so that it can load before content.module.
fivestar_update_6103 in ./fivestar.install
Move comment support to a separate module.
fivestar_update_6104 in ./fivestar.install
Update CCK target logic to rename "target" to "php_target".

File

./fivestar.install, line 49
Installation file for fivestar module.

Code

function fivestar_update_version() {
  static $version;
  if (!isset($version)) {
    $version = db_result(db_query("SELECT schema_version FROM {system} WHERE type = 'module' AND name = 'fivestar'"));
  }
  return $version;
}