You are here

function facebook_comments_block_block_save in Facebook Comments Block 7

Same name and namespace in other branches
  1. 7.2 facebook_comments_block.module \facebook_comments_block_block_save()

Implements hook_block_save().

File

./facebook_comments_block.module, line 291
Code for the Facebook Comments Block module.

Code

function facebook_comments_block_block_save($delta = '', $edit = array()) {
  switch ($delta) {
    case 'fb_comments':
      variable_set('facebook_comments_block_settings_app_id', $edit['facebook_comments_block_settings_app_id']);
      variable_set('facebook_comments_block_settings_domain', rtrim(rtrim($edit['facebook_comments_block_settings_domain']), '/'));
      variable_set('facebook_comments_block_settings_lang', $edit['facebook_comments_block_settings_lang']);
      variable_set('facebook_comments_block_settings_color_schema', $edit['facebook_comments_block_settings_color_schema']);
      variable_set('facebook_comments_block_settings_order', $edit['facebook_comments_block_settings_order']);
      variable_set('facebook_comments_block_settings_width', $edit['facebook_comments_block_settings_width']);
      variable_set('facebook_comments_block_settings_number_of_posts', $edit['facebook_comments_block_settings_number_of_posts']);
      break;
  }
}