function simplenews_block_save in Simplenews 7
Same name and namespace in other branches
- 7.2 simplenews.module \simplenews_block_save()
Implements hook_block_save().
File
- ./
simplenews.module, line 1169 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_block_save($delta = '', $edit = array()) {
if ($delta == 0) {
variable_set('simplenews_block_m_multiple', $edit['simplenews_block_m_multiple']);
}
else {
variable_set('simplenews_block_m_' . $delta, $edit['simplenews_block_m_' . $delta]);
variable_set('simplenews_block_f_' . $delta, $edit['simplenews_block_f_' . $delta]);
variable_set('simplenews_block_l_' . $delta, $edit['simplenews_block_l_' . $delta]);
variable_set('simplenews_block_i_status_' . $delta, $edit['simplenews_block_i_status_' . $delta]);
variable_set('simplenews_block_i_' . $delta, $edit['simplenews_block_i_' . $delta]);
variable_set('simplenews_block_r_' . $delta, $edit['simplenews_block_r_' . $delta]);
}
}