You are here

function headerimage_settings_block_add_submit in Header image 6

Same name and namespace in other branches
  1. 5 headerimage.module \headerimage_settings_block_add_submit()
  2. 7 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_query("INSERT INTO {headerimage_block} (title) VALUES ('%s')", $form_state['values']['title']);
  drupal_set_message(t('Header Image block %s added.', array(
    '%s' => $form_state['values']['title'],
  )));
}