You are here

function theme_ldapdata_ldap_attribute in LDAP integration 5

Same name and namespace in other branches
  1. 5.2 ldapdata.module \theme_ldapdata_ldap_attribute()
  2. 6 ldapdata.theme.inc \theme_ldapdata_ldap_attribute()
1 theme call to theme_ldapdata_ldap_attribute()
ldapdata_user_view in ./ldapdata.module

File

./ldapdata.module, line 897

Code

function theme_ldapdata_ldap_attribute($value, $type) {
  switch ($type) {
    case 'url':
      $ret = strpos($value, '://') ? $value : "http://{$value}";
      $ret = "<a href=\"{$ret}\">{$ret}</a>";
      break;
    case 'txt':
    default:
      $ret = $value;
      break;
  }
  return $ret;
}