1 node_hooks_example.module | node_hooks_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.
Related topics
File
- modules/
examples/ node_hooks_example/ node_hooks_example.module, line 84 - Hook implementations for the Node Hooks Example module.
Code
function node_hooks_example_node_type_form_submit(&$form, $form_state) {
config_set('node_hooks_example.settings', 'node_hooks_example_node_type_' . $form['#node_type']->type, $form_state['values']['node_hooks_example_node_type']);
}