You are here

function headerimage_settings_block_edit_submit in Header image 6

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

File

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

Code

function headerimage_settings_block_edit_submit($form, &$form_state) {
  db_query("UPDATE {headerimage_block} SET title = '%s' WHERE delta = %d", $form_state['values']['title'], $form_state['values']['delta']);
  drupal_set_message(t('Header Image block updated.'));
  return 'admin/settings/headerimage';
}