You are here

function vote_storylink_user in Vote Up/Down 5

Implementation of hook_user().

File

./vote_storylink.module, line 99

Code

function vote_storylink_user($type, &$edit, &$account, $category = NULL) {
  if ($type == 'view' && user_access('create storylinks', $account)) {
    $items[] = array(
      'title' => t('Story links'),
      'value' => l(t('view recent story links'), "storylink/{$account->uid}", array(
        'title' => t("Read @username's latest story links.", array(
          '@username' => $account->name,
        )),
      )),
      'class' => 'storylink',
    );
    return array(
      t('History') => $items,
    );
  }
}