function quotes_blocks_settings_submit in Quotes 7
Same name and namespace in other branches
- 6 quotes.admin.inc \quotes_blocks_settings_submit()
Creates the new quote block.
Parameters
array $form: The form that was submitted.
array $form_state: The array specifying the form values.
File
- ./
quotes.admin.inc, line 385 - 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_insert('quotes_blocks')
->fields(array(
'name' => trim($form_state['values']['name']),
'block_type' => '0',
'nid_filter' => '',
'aid_filter' => '',
'rid_filter' => '',
'uid_filter' => '',
'tid_filter' => '',
'cron_interval' => 0,
'cron_step' => 0,
'cron_last' => 0,
'vid' => 0,
))
->execute();
}