You are here

function headerimage_settings_block_add_submit in Header image 7

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

File

./headerimage.admin.inc, line 70
headerimage.admin.inc

Code

function headerimage_settings_block_add_submit($form, &$form_state) {
  db_insert('headerimage_block')
    ->fields(array(
    'title' => $form_state['values']['title'],
  ))
    ->execute();
  drupal_set_message(t('Header Image block %s added.', array(
    '%s' => $form_state['values']['title'],
  )));
}