You are here

troll.author-pane.inc in Author Pane 6

Same filename and directory in other branches
  1. 6.2 modules/troll.author-pane.inc

Provides a preprocess function on behalf of the troll module.

File

modules/troll.author-pane.inc
View source
<?php

/**
 * @file
 *   Provides a preprocess function on behalf of the troll module.
 */

/**
 * Implementation of hook_preprocess_author_pane().
 */
function troll_preprocess_author_pane(&$variables) {
  global $user;
  $account_id = $variables['account']->uid;
  if ($account_id != 0 && $account_id != $user->uid && user_access('administer troll')) {
    $variables['troll_ban_author'] = l(t('Ban IP'), 'admin/settings/troll/ip_ban/user/' . $account_id);
  }
}

Functions

Namesort descending Description
troll_preprocess_author_pane Implementation of hook_preprocess_author_pane().