You are here

function quotes_blocks_settings_submit in Quotes 6

Same name and namespace in other branches
  1. 7 quotes.admin.inc \quotes_blocks_settings_submit()

Creates the new quote block.

Parameters

$form: The string specifying the form ID of the form that was submitted.

$form: The array specifying the form values.

File

./quotes.admin.inc, line 307
The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.

Code

function quotes_blocks_settings_submit($form, &$form_state) {
  db_query("INSERT INTO {quotes_blocks} (name, block_type, nid_filter, aid_filter, rid_filter, uid_filter, tid_filter, cron_interval, cron_step, cron_last, vid) VALUES ('%s', 0, '', '', '', '', '', 0, 0, 0, 0)", trim($form_state['values']['name']));
}