1 nodeapi_example.module nodeapi_example_node_type_form_submit(&$form, $form_state)

A custom submit handler.

This function runs when the 'node_type_form' is saved because we added it as a submit handler in '$form['#submit'][]'.

Related topics

File

modules/examples/nodeapi_example/nodeapi_example.module, line 95
Module implementation for nodeapi_example module.

Code

function nodeapi_example_node_type_form_submit(&$form, $form_state) {
  config_set('nodeapi_example.settings', 'nodeapi_example_node_type_' . $form['#node_type']->type, $form_state['values']['nodeapi_example_node_type']);
}