You are here

function cas_drush_phpcas_version in CAS 7

Displays version of the installed phpCAS library.

1 string reference to 'cas_drush_phpcas_version'
cas_drush_command in ./cas.drush.inc
Implements hook_drush_command().

File

./cas.drush.inc, line 115
Drush commands for CAS.

Code

function cas_drush_phpcas_version() {
  if ($version = @cas_phpcas_load()) {
    drush_log(dt('phpCAS version: @version', array(
      '@version' => $version,
    )), 'ok');
  }
  else {
    drush_set_error(dt('phpCAS could not be loaded. Please download phpCAS and configure its location.'));
  }
}