You are here

function _responsive_share_buttons_defaults in Responsive Share Buttons 7

Provide default settings.

2 calls to _responsive_share_buttons_defaults()
responsive_share_buttons_install in ./responsive_share_buttons.install
Implements hook_install().
responsive_share_buttons_update_7100 in ./responsive_share_buttons.install
Set default social networks.

File

./responsive_share_buttons.install, line 17
Install and update hooks.

Code

function _responsive_share_buttons_defaults() {
  $networks = array(
    'facebook',
    'twitter',
    'digg',
    'stumbleupon',
    'delicious',
    'google',
    'linkedin',
    'pinterest',
  );
  foreach ($networks as $network) {
    $defaults[$network] = array(
      'active' => TRUE,
      'weight' => 0,
    );
  }
  return $defaults;
}