by lliss: make config array generation into a single funciton and fix issue on the admin page for static button language selection.
#1437354 by kbemelmans and jonhattan - Adding display suite integration.
by lliss: Add better help text for localization options to the config pages.
#1668256 by goye2cz: Fixed the broken language setting on the dynamic fblike button.
by lliss make the send attribute explicit. See iframe code generated at http://developers.facebook.com/docs/reference/plugins/like/ for more info.
#1570374 by jgtrescazes, Stakcreativa: Fixes the display issue caused by the iframe having 'px' string after the width and height values. Also makes the language parameter optional.
#1664410 by lliss: Fixed the display failure of the fb button by changing the show_faces options that are stored as drupal variables to booleans and then outputting 'true' and 'false' text when generating the ifrome.
description = Adds a configurable <em>Like</em> button for Facebook to each selected node type, as well as a configurable block with a <em>Like</em> box in it.
core = 7.x
configure = admin/config/fblikebutton
; Information added by drupal.org packaging script on 2012-11-26
* Remove old values and replace with properly-formatted values, as some sites are experiencing problems from previous update.
*/
functionfblikebutton_update_7201(){
// Just delete the variable and inform the administrator that the value has been set to false, and if it should be true, then they need to manually set it to true.
// Too much confusion has occurred with the word "true" and the PHP boolean TRUE, and it's causing the button not to show up on some sites.
variable_del('fblikebutton_show_faces');
variable_set('fblikebutton_show_faces',TRUE);
variable_del('fblikebutton_bl_show_faces');
variable_set('fblikebutton_bl_show_faces',TRUE);
cache_clear_all();
drupal_set_message(t('The Facebook Like Button has been updated successfully. However, if you previously set the values of "show faces" to "Do not show faces", you will need to set those values back to "Do not show faces" now by visiting the settings page for both the').' '.l(t('static'),'admin/config/fblikebutton/static').' '.t('and the').' '.l(t('dynamic'),'admin/config/fblikebutton/dynamic').' '.t('settings pages for the Facebook Like Button.'));
'description'=>'Configure the settings for the static Like button as it appears in the block (liking a given url). Use this to like for example your Facebook fanpage.',
'#markup'=>'<p>'.t('To configure the URL and the appearance of the button go to the '.l(t('static Like button settings'),'admin/config/fblikebutton/static').'. Make sure you set the right permissions on the '.l(t('permissions page'),'admin/people/permissions').'.</p>'),
'#markup'=>'<p>'.t('To configure the visibility and the appearance of the button go to the '.l(t('dynamic Like button settings'),'admin/config/fblikebutton/dynamic').'. You can enhance the visibility settings by using the settings on this page. Make sure you set the right permissions on the '.l(t('permissions page'),'admin/people/permissions').'.</p>'),