function fb_likebox_block_save in Facebook Page Plugin 7.2
Same name and namespace in other branches
- 7 fb_likebox.module \fb_likebox_block_save()
Implements hook_block_save().
File
- ./
fb_likebox.module, line 136 - 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_app_id', check_plain($edit['fb_likebox_app_id']));
variable_set('fb_likebox_hide_header', check_plain($edit['fb_likebox_hide_header']));
variable_set('fb_likebox_stream', check_plain($edit['fb_likebox_stream']));
variable_set('fb_likebox_events', check_plain($edit['fb_likebox_events']));
variable_set('fb_likebox_messages', check_plain($edit['fb_likebox_messages']));
variable_set('fb_likebox_show_faces', check_plain($edit['fb_likebox_show_faces']));
variable_set('fb_likebox_width', check_plain($edit['fb_likebox_width']));
variable_set('fb_likebox_height', check_plain($edit['fb_likebox_height']));
variable_set('fb_likebox_title', check_plain($edit['fb_likebox_title']));
variable_set('fb_likebox_hide_cta', check_plain($edit['fb_likebox_hide_cta']));
variable_set('fb_likebox_small_header', check_plain($edit['fb_likebox_small_header']));
variable_set('fb_likebox_adapt_container_width', check_plain($edit['fb_likebox_adapt_container_width']));
variable_set('fb_likebox_language', check_plain($edit['fb_likebox_language']));
}
}