function share42_element_info in Share42 - social sharing buttons 7.2
Implements hook_element_info().
File
- ./
share42.module, line 376 - Main file for the Share42 module.
Code
function share42_element_info() {
$types = array();
$types['share42_widget'] = array(
'#input' => FALSE,
'#theme' => 'share42_widget',
'#pre_render' => array(
'share42_widget_pre_render',
),
'#html_tag' => 'div',
// General parameters.
'#id' => 'share42-widget',
// Link parameters.
'#url' => NULL,
'#title' => NULL,
'#image' => NULL,
'#description' => NULL,
// Configuration parameters.
'#path' => base_path() . _share42_library_path() . '/',
'#icons_file' => 'icons.png',
'#zero_counter' => variable_get('share42_zero_counter', 0),
'#top1' => variable_get('share42_top1', 200),
'#top2' => variable_get('share42_top2', 50),
'#margin' => variable_get('share42_margin', -70),
'#attached' => array(
'js' => array(
_share42_library_path() . '/share42.js' => array(
'weight' => 10,
),
),
),
);
return $types;
}