You are here

function headerimage_settings_block_edit_submit in Header image 7

Same name and namespace in other branches
  1. 5 headerimage.module \headerimage_settings_block_edit_submit()
  2. 6 headerimage.module \headerimage_settings_block_edit_submit()

File

./headerimage.module, line 94
headerimage.module Conditionally display an node in a block.

Code

function headerimage_settings_block_edit_submit($form, &$form_state) {
  db_update('headerimage_block')
    ->fields(array(
    'title' => $form_state['values']['title'],
  ))
    ->condition('delta', $form_state['values']['delta'], '=')
    ->execute();
  drupal_set_message(t('Header Image block updated.'));
  $form_state['redirect'] = 'admin/structure/headerimage';
}