function easy_social_admin_config_extra_googleplus in Easy Social 7.2
Form callback. Extra settings for Google+ Widget.
See also
1 string reference to 'easy_social_admin_config_extra_googleplus'
- easy_social_menu in ./
easy_social.module - Implements hook_menu().
File
- includes/
easy_social.admin.inc, line 366 - Easy Social admin settings.
Code
function easy_social_admin_config_extra_googleplus() {
$form = array();
$form['easy_social_googleplus_title'] = array(
'#markup' => '<h4>' . t('Google+ widget settings') . '</h4>',
);
$form['easy_social_googleplus_info'] = array(
'#markup' => t('For more information check out the official Google+ widget <a href="!link" target="_blank">documentation</a>.', array(
'!link' => 'http://www.google.com/intl/en/webmasters/+1/button/index.html',
)),
);
$form['easy_social_googleplus_info_count'] = array(
'#markup' => '<p>' . t('To hide the count: set Annotation to None.') . '</p>',
);
$form['easy_social_googleplus_annotation'] = array(
'#type' => 'select',
'#title' => t('Annotation'),
'#description' => t('How the count will appear'),
'#options' => array(
'bubble' => 'bubble',
'inline' => 'inline',
'none' => 'none',
),
'#default_value' => variable_get_value('easy_social_googleplus_annotation'),
);
$form['easy_social_googleplus_html5'] = array(
'#type' => 'checkbox',
'#title' => t('HTML5 valid syntax'),
'#description' => t('Whether the widget should be output in HTML5 valid syntax or not'),
'#default_value' => variable_get_value('easy_social_googleplus_html5'),
);
return system_settings_form($form);
}