I have a form function today:
function content_form ($form, &$form_submit) {
}
That I use to allow administrators to customize content and settings for an online tool. Once changes have been made to the form, they can be saved, which I do today using a form submit function using db_update and the fields method for assigning values. As you can see the values are assigned based on passing $form_state into the function.
function content_form_submit ($form, &$form_state) {
$price_update = db_update ('fielddata')
->fields (array(
'title' => $form_state['values']['price_title'],
'desc' => $form_state['values']['price_description'],
'value' => $form_state['values']['price_value'],
'minvalue' => $form_state['values']['price_minvalue'],
'maxvalue' => $form_state['values']['price_maxvalue'],
))
->condition('fieldid', 'price')
->execute();
}
These two functions work perfectly well as implemented and the data gets saved to the proper table correctly.
Now, I'd like to convert these two functions to block_configuration and block_save functions, respectively so that they can be accessed in the block configuration area. In reviewing the examples module, it looks like the correct functions are as follows: