function follow_block_save in Follow 7.2
Same name and namespace in other branches
- 5 follow.module \follow_block_save()
- 6 follow.module \follow_block_save()
- 7 follow.module \follow_block_save()
Implements hook_block_save().
File
- ./
follow.module, line 271
Code
function follow_block_save($delta = '', $edit = array()) {
variable_set("follow_{$delta}_block_title", $edit['follow_title']);
if ($delta == 'site') {
variable_set('follow_site_block_user', $edit['follow_user']);
}
variable_set("follow_{$delta}_alignment", $edit['follow_alignment']);
variable_set("follow_{$delta}_hide_text", $edit['follow_hide_text']);
variable_set("follow_{$delta}_icon_style", $edit['follow_icon_style']);
// Reset the CSS in case the styles changed.
follow_save_css(TRUE);
}