You are here

function fivestar_update_version in Fivestar 5

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

Function to retrieve the current version to prevent duplicate updates.

1 call to fivestar_update_version()
fivestar_update_5702 in ./fivestar.install
Move comment support to a separate module.

File

./fivestar.install, line 19
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;
}