Revision 8e013268
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/includes/common.inc | ||
---|---|---|
953 | 953 |
return is_numeric($var); |
954 | 954 |
} |
955 | 955 |
|
956 |
function normalize_to_class_attribute($string){ |
|
957 |
$string = strtolower($string); |
|
958 |
$string = preg_replace('/\s/', '_', $string); |
|
959 |
$string = preg_replace('/[^a-z0-9\-_]/', '', $string); |
|
960 |
return $string; |
|
961 |
} |
Also available in: Unified diff
ref #7599 ref #6866 specimen details tables - class attributes for testing