function theme_ldapdata_ldap_attribute in LDAP integration 5
Same name and namespace in other branches
- 5.2 ldapdata.module \theme_ldapdata_ldap_attribute()
- 6 ldapdata.theme.inc \theme_ldapdata_ldap_attribute()
1 theme call to theme_ldapdata_ldap_attribute()
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;
}