You are here

function block_refresh_submit in Block Refresh 5

Same name and namespace in other branches
  1. 6 block_refresh.module \block_refresh_submit()
  2. 7.2 block_refresh.module \block_refresh_submit()
  3. 7 block_refresh.module \block_refresh_submit()

handle submission of block refresh form on block settings page

File

./block_refresh.module, line 50

Code

function block_refresh_submit($form_id, $edit) {
  $settings = variable_get('block_refresh_settings', array());
  $settings['block-' . $edit['module'] . '-' . $edit['delta']]['enabled'] = $edit['block_refresh_enable'];
  $settings['block-' . $edit['module'] . '-' . $edit['delta']]['manual'] = $edit['block_refresh_manual'];
  $settings['block-' . $edit['module'] . '-' . $edit['delta']]['group'] = $edit['block_refresh_group'];
  $settings['block-' . $edit['module'] . '-' . $edit['delta']]['timer'] = $edit['block_refresh_timer'];
  $settings['block-' . $edit['module'] . '-' . $edit['delta']]['block'] = array(
    'block' => $edit['module'],
    'delta' => $edit['delta'],
  );
  variable_set('block_refresh_settings', $settings);
}