2014-01-31, 11:23 AM
Hello, please could you tell me how the format_name function works, and how the variables inside are processed.
If you don't know exactly what I'm trying to say, here's an example.
$formattedname = format_name($row['username'], $row['usergroup'], $row['displaygroup']);
I understand that the above string will grab the user's user group and display group and then format the name accordingly.
Is there anyway to add other variables to that, say for example, I wanted to format a username based on a specific color?
Many thanks.
If you don't know exactly what I'm trying to say, here's an example.
$formattedname = format_name($row['username'], $row['usergroup'], $row['displaygroup']);
I understand that the above string will grab the user's user group and display group and then format the name accordingly.
Is there anyway to add other variables to that, say for example, I wanted to format a username based on a specific color?
Many thanks.