转自:http://drupalchina.cn/doc/1341.html
if (user_is_logged_in()) {
$output = t('User is logged in.');
else {
$output = t('User is an anonymous user.');
}
转自:http://drupalchina.cn/doc/1341.html
if (user_is_logged_in()) {
$output = t('User is logged in.');
else {
$output = t('User is an anonymous user.');
}