function send_drupal_settings in Facebook social plugins integration 7.2
Same name and namespace in other branches
- 6.2 plugins/fb_plugin/send.inc \send_drupal_settings()
File
- plugins/
fb_plugin/ send.inc, line 66
Code
function send_drupal_settings($options) {
$form = array();
$form['node_types'] = array(
'#type' => 'fieldset',
'#title' => t('Content types'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['node_types']['types'] = array(
'#type' => 'checkboxes',
'#description' => t('Select types that will use the facebook send plugin'),
'#default_value' => isset($options['node_types']['types']) ? array_keys(array_filter($options['node_types']['types'])) : array(),
'#options' => node_type_get_names(),
);
$form['plugin_location'] = array(
'#type' => 'fieldset',
'#title' => t('plugin location and display'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['plugin_location']['location'] = array(
'#type' => 'radios',
'#title' => t('plugin location'),
'#default_value' => isset($options['plugin_location']['location']) ? $options['plugin_location']['location'] : 0,
'#options' => array(
t('Node links'),
t('Node content'),
),
'#description' => t('The plugin can be printed in the "links" are of the node or as part of the node content'),
);
$form['plugin_location']['node_view_modes'] = array(
'#type' => 'checkboxes',
'#title' => t('View modes'),
'#description' => t('Select view mode where it will be displayed.'),
'#options' => _fb_social_get_node_view_modes(),
'#default_value' => isset($options['plugin_location']['node_view_modes']) ? $options['plugin_location']['node_view_modes'] : array(
'full',
'teaser',
),
);
return $form;
}