function socialmedia_widgets_share_platforms_form in Social media 7
1 string reference to 'socialmedia_widgets_share_platforms_form'
File
- ./
socialmedia.widgets.inc, line 405 - Functions needed to execute image elements provided by Image module.
Code
function socialmedia_widgets_share_platforms_form($data) {
$form = widgets_template_auto_form($data);
$element = widgets_element_load_by_admin_path();
if (isset($form['icon-path'])) {
$options = socialmedia_icon_style_options(TRUE, $element['platform']);
$form['icon-path'] = array(
'#type' => 'select',
'#title' => t('Icon style'),
'#default_value' => isset($data['icon-path']) && $data['icon-path'] ? $data['icon-path'] : '',
//'#description' => t('The name is used in URLs for generated images. Use only lowercase alphanumeric characters, underscores (_), and hyphens (-).'),
'#options' => $options,
);
}
return $form;
}