first import
This commit is contained in:
25
sites/all/modules/follow/follow.api.php
Normal file
25
sites/all/modules/follow/follow.api.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Alter the available networks to the Follow module.
|
||||
*
|
||||
* @param $networks
|
||||
* Associative array of networks that are available.
|
||||
* @param $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.
|
||||
*/
|
||||
function hook_follow_networks_alter(&$networks, $uid = 0) {
|
||||
// Add a network.
|
||||
$networks['mailinglist'] = array(
|
||||
'title' => t('Mailing List'),
|
||||
'domain' => '',
|
||||
);
|
||||
|
||||
// Replace Twitter with Identi.ca
|
||||
unset($networks['twitter']);
|
||||
$networks['identica'] = array(
|
||||
'title' => t('Identi.ca'),
|
||||
'domain' => 'identi.ca',
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user