function vf_ucfirst in Views Field 7
Returns text with underscores replaced by spaces and first letter capped.
Parameters
string $text: The text to format.
Return value
Formatted text.
1 call to vf_ucfirst()
- views_field_add_base_table in ./
views_field.inc - Adds field table as base table to views.
File
- ./
views_field.inc, line 323 - Modifies definitions of base tables, fields, and joins for views.
Code
function vf_ucfirst($text) {
return str_replace('_', ' ', ucfirst($text));
}