You are here

function yashare_element_info in Yandex.Share 7.2

Implements hook_element_info().

File

./yashare.module, line 374

Code

function yashare_element_info() {
  $types = array();
  $types['yashare_widget'] = array(
    '#input' => FALSE,
    '#pre_render' => array(
      'yashare_widget_pre_render',
    ),
    '#html_tag' => 'div',
    // General parameters.
    '#id' => 'yashare-widget',
    '#l10n' => yashare_get_language(TRUE),
    '#init_type' => variable_get('yashare_init_type', 'automatic'),
    '#yashare_theme' => variable_get('yashare_theme', 'default'),
    // Link parameters.
    '#link' => NULL,
    '#title' => NULL,
    '#description' => NULL,
    '#image' => variable_get('yashare_image', FALSE) ? theme_get_setting('logo') : NULL,
    // Block parameters.
    '#block_title' => check_plain(variable_get('yashare_block_title', '')),
    '#yashare_type' => variable_get('yashare_type', 'button'),
    '#border' => variable_get('yashare_border', FALSE),
    '#linkunderline' => variable_get('yashare_linkunderline', FALSE),
    '#linkicon' => variable_get('yashare_linkicon', FALSE),
    '#quickservices' => NULL,
    // Popup parameters.
    '#popup_title' => check_plain(variable_get('yashare_popup_title', '')),
    '#popup_services' => NULL,
    '#copypastefield' => variable_get('yashare_popup_link', FALSE),
    '#vdirection' => variable_get('yashare_popup_vdirection', 0),
    '#codeforblog' => variable_get('yashare_popup_codeforblog', FALSE),
  );
  return $types;
}