function fb_likebox_block_save in Facebook Page Plugin 7
Same name and namespace in other branches
- 7.2 fb_likebox.module \fb_likebox_block_save()
Implements hook_block_save().
File
- ./
fb_likebox.module, line 201 - Simple module that provides a configurable block with Facebook Likebox's plugin.
Code
function fb_likebox_block_save($delta = '', $edit = array()) {
switch ($delta) {
case '0':
// Set the values given in the block form
variable_set('fb_likebox_url', check_url($edit['fb_likebox_url']));
variable_set('fb_likebox_colorscheme', check_plain($edit['fb_likebox_colorscheme']));
variable_set('fb_likebox_header', check_plain($edit['fb_likebox_header']));
variable_set('fb_likebox_stream', check_plain($edit['fb_likebox_stream']));
variable_set('fb_likebox_show_faces', check_plain($edit['fb_likebox_show_faces']));
variable_set('fb_likebox_scrolling', check_plain($edit['fb_likebox_scrolling']));
variable_set('fb_likebox_width', check_plain($edit['fb_likebox_width']));
variable_set('fb_likebox_width_units', check_plain($edit['fb_likebox_width_units']));
variable_set('fb_likebox_height', check_plain($edit['fb_likebox_height']));
variable_set('fb_likebox_show_border', check_plain($edit['fb_likebox_show_border']));
variable_set('fb_likebox_force_wall', check_plain($edit['fb_likebox_force_wall']));
variable_set('fb_likebox_iframe_title', check_plain($edit['fb_likebox_iframe_title']));
}
}