commons_status_streams.pages.inc in Drupal Commons 6.2
File
modules/features/commons_status_streams/commons_status_streams.pages.inc
View source
<?php
function commons_status_streams_stream_page($group_node = NULL) {
if (!empty($group_node->title)) {
drupal_set_title($group_node->title);
}
else {
drupal_set_title(t('Activity stream'));
}
if (user_is_anonymous()) {
$prompt = array();
$prompt[] = t('Share your own status updates, and follow the updates & activities of others by !register.', array(
'!register' => l(t('creating your own account'), 'user/register'),
));
$prompt[] = t('Or, remember to !login If you already have an account.', array(
'!login' => l(t('log in'), 'user/login'),
));
return implode('<br/><br/>', $prompt);
}
else {
if (user_access('view all activity messages')) {
return theme('facebook_status_form_display', NULL, NULL, 'activity_log_stream');
}
else {
drupal_access_denied();
}
}
}