function block_upload_block_save in Block Upload 7
Implements hook_block_save().
File
- ./
block_upload.module, line 108 - Block Upload module.
Code
function block_upload_block_save($delta = '', $edit = array()) {
$id = $edit['block_upload_id'];
$block_id = 'block_upload_' . $id . '_';
variable_set($block_id . 'field', $edit[$block_id . 'field']);
$settings = array();
$settings['plupload'] = isset($edit[$block_id . 'plupload_status']) ? $edit[$block_id . 'plupload_status'] : FALSE;
$settings['alt'] = isset($edit[$block_id . 'alt']) ? $edit[$block_id . 'alt'] : FALSE;
$settings['title'] = isset($edit[$block_id . 'title']) ? $edit[$block_id . 'title'] : FALSE;
$settings['desc'] = isset($edit[$block_id . 'desc']) ? $edit[$block_id . 'desc'] : FALSE;
variable_set($block_id . 'settings', $settings);
}