You are here

function jw_player_sharing_sites in JW Player 8

Same name and namespace in other branches
  1. 7.2 jw_player.module \jw_player_sharing_sites()

Helper function to retrieve available JW Player sharing sites.

Return value

array Array of sharing site keys and formatted values.

2 calls to jw_player_sharing_sites()
JwplayerPresetAdd::form in src/Form/JwplayerPresetAdd.php
Gets the actual form array to be built.
Jw_player::settingsDisplay in src/Entity/Jw_player.php
Helper function to display JW Player preset settings.

File

./jw_player.module, line 289
Adds a theme function which allows theme developers to use the JW Player.

Code

function jw_player_sharing_sites() {
  return [
    'facebook' => t('Facebook'),
    'twitter' => t('Twitter'),
    'pinterest' => t('Pinterest'),
    'email' => t('Email'),
    'tumblr' => t('Tumblr'),
    'googleplus' => t('Google Plus'),
    'reddit' => t('Reddit'),
    'linkedin' => t('LinkedIn'),
  ];
}