2 * Implements hook_user_view().
4 function {{ machine_name }}_user_view($account, $view_mode, $langcode) {
5 if (user_access('create blog content', $account)) {
6 $account->content['summary']['blog'] = array(
7 '#type' => 'user_profile_item',
9 '#markup' => l(t('View recent blog entries'), "blog/$account->uid", array('attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => format_username($account)))))),
10 '#attributes' => array('class' => array('blog')),