get_latest_tag

Definition

get_latest_tag($module, $version)
test_it.php, line 251

Description

Turns module name and Drupal version into the correct CVS tag for the given module, favors stable tags over branches

Code

<?php
function get_latest_tag($module, $version) {
  switch ($version['core']) {
    case '7':
      return 'HEAD';
    case '6':
      return 'DRUPAL-6--1';
    case '5':
      return 'DRUPAL-5';
    case '4.7':
      return 'DRUPAL-4-7';
    default:
      return FALSE;
  }
}
?>