You are here

function hook_follow_networks_alter in Follow 7.2

Same name and namespace in other branches
  1. 6 follow.api.php \hook_follow_networks_alter()
  2. 7 follow.api.php \hook_follow_networks_alter()

Alter the available networks to the Follow module.

Parameters

$networks: Associative array of networks that are available.

$uid: The User ID of the networks to be displayed. If 0 is provided, will be the networks for the website rather then an individual user.

1 invocation of hook_follow_networks_alter()
follow_networks_load in ./follow.inc
Loads all follow networks

File

./follow.api.php, line 12

Code

function hook_follow_networks_alter(&$networks, $uid = 0) {

  // Add a network.
  $networks[$uid]['mailinglist'] = array(
    'title' => t('Mailing List'),
    'domain' => 'mailinglist.domain.com',
  );

  // Replace Twitter with Identi.ca
  unset($networks[$uid]['twitter']);
  $networks[$uid]['identica'] = array(
    'title' => t('Identi.ca'),
    'domain' => 'identi.ca',
  );
}