You are here

function fblikebutton_update_7201 in Facebook Like Button 7.2

Remove old values and replace with properly-formatted values, as some sites are experiencing problems from previous update.

File

./fblikebutton.install, line 75
Install, update, and uninstall functions for the fblikebutton module.

Code

function fblikebutton_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.'));
}