Commit e43781c9 authored by webchick's avatar webchick
Browse files

#684774 follow-up by sun: Remove silly superfluous check from node_block_admin_configure_submit().

parent 90350182
......@@ -2227,12 +2227,10 @@ function node_form_block_admin_configure_alter(&$form, &$form_state) {
* Form submit handler for block configuration form.
*/
function node_block_admin_configure_submit($form, &$form_state) {
if (isset($form_state['values']['delta'])) {
db_delete('block_node_type')
->condition('module', $form_state['values']['module'])
->condition('delta', $form_state['values']['delta'])
->execute();
}
db_delete('block_node_type')
->condition('module', $form_state['values']['module'])
->condition('delta', $form_state['values']['delta'])
->execute();
$query = db_insert('block_node_type')->fields(array('type', 'module', 'delta'));
foreach (array_filter($form_state['values']['types']) as $type) {
$query->values(array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment