You are here

function yashare_get_services in Yandex.Share 7

Returns all services list or default services.

3 calls to yashare_get_services()
yashare_get_block_services in ./yashare.inc
Returns services list for block.
yashare_get_popup_services in ./yashare.inc
Returns services list for popup.
yashare_settings in ./yashare.module
Returns settings form.

File

./yashare.inc, line 11
Yandex.Share helper functions.

Code

function yashare_get_services($default = FALSE) {
  if ($default) {
    return array(
      'yaru',
      'vkontakte',
      'twitter',
      'facebook',
      'lj',
      'moimir',
      'friendfeed',
      'odnoklassniki',
    );
  }

  // Untranslatable services.
  return array(
    'blogger' => 'Blogger',
    'digg' => 'Digg',
    'evernote' => 'Evernote',
    'delicious' => 'Delicious',
    'diary' => 'Дневники',
    'facebook' => 'Facebook',
    'friendfeed' => 'FriendFeed',
    'gplus' => 'Google+',
    'juick' => 'Juick',
    'liveinternet' => 'LiveInternet',
    'linkedin' => 'LinkedIn',
    'lj' => 'LiveJournal',
    'moikrug' => 'Мой Круг',
    'moimir' => 'Мой Мир',
    'myspace' => 'MySpace',
    'odnoklassniki' => 'Одноклассники',
    'tutby' => 'Я тут!',
    'twitter' => 'Twitter',
    'vkontakte' => 'VK.com',
    'yaru' => 'Я.Ру',
    'yazakladki' => 'Яндекс.Закладки',
  );
}