function fb_social_like_widget_settings_form in Facebook social plugins integration 6
2 calls to fb_social_like_widget_settings_form()
- fb_social_like_handler_field_like::options_form in modules/
fb_social_like/ views/ fb_social_like_handler_field_like.inc - the fb like options form
- fb_social_like_settings_form in modules/
fb_social_like/ fb_social_like.admin.inc - Settings form
File
- modules/
fb_social_like/ fb_social_like.admin.inc, line 67
Code
function fb_social_like_widget_settings_form() {
$form = array();
$form['fb_social_like_send_button'] = array(
'#type' => 'checkbox',
'#title' => t('Send button'),
'#description' => t('Include a send button'),
'#default_value' => variable_get('fb_social_like_send_button', 0),
);
$form['fb_social_like_layout_style'] = array(
'#type' => 'select',
'#title' => t('Layout style'),
'#description' => t('Determines the size and the amount of the social context next to the button'),
'#default_value' => variable_get('fb_social_like_layout_style', 'button_count'),
'#options' => array(
'standard' => t('standard'),
'button_count' => t('button_count'),
'box_count' => t('box_count'),
),
);
$form['fb_social_like_show_faces'] = array(
'#type' => 'checkbox',
'#title' => t('Show faces'),
'#description' => t('Show profiles pictures below the button'),
'#default_value' => variable_get('fb_social_like_show_faces', 0),
);
$form['fb_social_like_width'] = array(
'#type' => 'textfield',
'#title' => t('Width'),
'#description' => t('The width of the plugin in pixel'),
'#default_value' => variable_get('fb_social_like_width', 350),
);
$form['fb_social_like_verb'] = array(
'#type' => 'select',
'#title' => t('Verb'),
'#description' => t('The verb to display in the button'),
'#default_value' => variable_get('fb_social_like_verb', 'like'),
'#options' => array(
'like' => t('like'),
'recommend' => t('recommend'),
),
);
$form['fb_social_like_font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#description' => t('The font of the plugin'),
'#default_value' => variable_get('fb_social_like_font', 'verdana'),
'#options' => array(
'arial' => t('arial'),
'verdana' => t('verdana'),
),
);
$form['fb_social_like_color'] = array(
'#type' => 'select',
'#title' => t('Color'),
'#description' => t('The color scheme of the plugin'),
'#default_value' => variable_get('fb_social_like_color', 'dark'),
'#options' => array(
'dark' => t('dark'),
'light' => t('light'),
'evil' => t('evil'),
),
);
return $form;
}