function fb_social_fb_plugin_fb_settings_form in Facebook social plugins integration 7.2
Same name and namespace in other branches
- 6.2 fb_social.module \fb_social_fb_plugin_fb_settings_form()
Return the facebook plugin form for a given type
Parameters
$type the plugin type/name (i.e. like).:
2 calls to fb_social_fb_plugin_fb_settings_form()
- fb_social_default::options_form in plugins/
boxes/ fb_social_default.inc - Implementation of boxes_content::options_form().
- fb_social_presets_ui_form in plugins/
export_ui/ fb_social_presets_ui.inc - The preset add/edit form
File
- ./
fb_social.module, line 308
Code
function fb_social_fb_plugin_fb_settings_form($type, $options) {
$form = array();
$plugin = fb_social_fb_plugin_load($type);
$url = FB_REF_BASE_URL . $plugin['html tag name'];
$l = l("facebook documentation page", $url, array(
'attributes' => array(
'target' => '_blank',
),
));
$desc = t("For more information about this plugin and its attributes please check out the !facebookdoc", array(
'!facebookdoc' => $l,
));
$form['help'] = array(
'#value' => "<div>" . $desc . "</div>",
);
$function = ctools_plugin_get_function($plugin, 'fb plugin form');
if ($function) {
$form += $function($options);
}
return $form;
}