| 1 node_hooks_example.module | node_hooks_example_node_type_form_submit(&$form, $form_state) |
A custom submission handler.
This function runs when the 'node_type_form' is saved because we added it as submission handler.
Related topics
File
- modules/
examples/ node_hooks_example/ node_hooks_example.module, line 99 - 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_type_' . $form['#node_type']->type, $form_state['values']['node_hooks_example_node_type']);
}