function fblikebutton_conf in Facebook Like Button 7.2
Same name and namespace in other branches
- 8 fblikebutton.module \fblikebutton_conf()
Helper function to generate the configuration array used to generate the like button.
4 calls to fblikebutton_conf()
- fblikebutton_block_view in ./
fblikebutton.module - Implementation of hook_block_view().
- fblikebutton_node_view in ./
fblikebutton.module - Implements of hook_node_view().
- fblikebutton_theme in ./
fblikebutton.module - Implements hook_theme().
- _fblikebutton_ds_field in ./
fblikebutton.module - Callback for ds button.
File
- ./
fblikebutton.module, line 53 - Adds Facebook's "Like" button to each selected node type. Adds a block with a global static value where users can "Like" the URL set by admins.
Code
function fblikebutton_conf($type = 'dynamic') {
$prefix = 'fblikebutton';
if ($type == 'static') {
$prefix = 'fblikebutton_bl';
}
$conf = array(
'layout' => variable_get($prefix . '_layout', 'standard'),
'action' => variable_get($prefix . '_action', 'like'),
'color_scheme' => variable_get($prefix . '_color_scheme', 'light'),
'show_faces' => variable_get($prefix . '_show_faces', 'true'),
'font' => variable_get($prefix . '_font', 'arial'),
'height' => variable_get($prefix . '_iframe_height', '80'),
'width' => variable_get($prefix . '_iframe_width', '450'),
'send' => variable_get($prefix . '_send', 'true'),
'other_css' => check_plain(variable_get($prefix . '_iframe_css', '')),
'share' => variable_get($prefix . '_share', ''),
'language' => variable_get($prefix . '_language', 'en_US'),
);
return $conf;
}