This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implementation of theme_username() | |
* Change theme_username below to your_theme_name_username | |
*/ | |
function theme_username($object, $link = TRUE) { | |
if ( !$object->profile_first_name && !$object->profile_last_name ) { | |
if ( $object->uid && function_exists('profile_load_profile') ) { | |
profile_load_profile($object); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'host' => php_sapi_name() == 'cli' ? '127.0.0.1' : 'localhost', |