You are here

function fblikebutton_block_save in Facebook Like Button 7

Implementation of hook_block_save()

File

./fblikebutton.module, line 217
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_block_save($delta = '', $edit = array()) {
  if ($delta == 'fblikebutton_block') {
    variable_set('fblikebutton_bl_layout', $edit['fblikebutton_bl_layout']);
    variable_set('fblikebutton_bl_layout', $edit['fblikebutton_bl_layout']);
    variable_set('fblikebutton_bl_show_faces', $edit['fblikebutton_bl_show_faces']);
    variable_set('fblikebutton_bl_action', $edit['fblikebutton_bl_action']);
    variable_set('fblikebutton_bl_font', $edit['fblikebutton_bl_font']);
    variable_set('fblikebutton_bl_color_scheme', $edit['fblikebutton_bl_color_scheme']);
    variable_set('fblikebutton_bl_iframe_width', $edit['fblikebutton_bl_iframe_width']);
    variable_set('fblikebutton_bl_iframe_height', $edit['fblikebutton_bl_iframe_height']);
    variable_set('fblikebutton_bl_iframe_css', $edit['fblikebutton_bl_iframe_css']);
    variable_set('fblikebutton_bl_language', $edit['fblikebutton_bl_language']);
  }
}