You are here

function cas_proxy_list_version_check in CAS 7

Proxy chain object only exists with phpCAS version >= 1.3. As phpCAS CAS.php is include only after building element 'cas_library_dir', we must check it after it.

1 string reference to 'cas_proxy_list_version_check'
cas_admin_settings in ./cas.admin.inc
Provides settings pages.

File

./cas.admin.inc, line 401
CAS module settings UI.

Code

function cas_proxy_list_version_check($element, &$form_state) {
  if (!defined('PHPCAS_VERSION') || version_compare(PHPCAS_VERSION, '1.3', '<')) {
    $element['#access'] = FALSE;
  }
  return $element;
}