Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions custom_breadcrumbs.module
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,17 @@ function custom_breadcrumbs_form_node_type_form_alter(&$form, $form_state, $form
'#description' => t('Access is limited to users with administer custom breadcrumbs permission.'),
'#default_value' => config_get('custom_breadcrumbs.settings', 'custom_breadcrumbs_show_form_table_' . $form['#node_type']->type, CUSTOM_BREADCRUMBS_SHOW_FORM_TABLE_DEFAULT),
);

$form['#submit'][] = 'custom_breadcrumbs_form_node_type_form_submit';
}
}

/**
* Submit handler for node type form.
*/
function custom_breadcrumbs_form_node_type_form_submit(&$form, $form_state) {
if (isset($form_state['values']['custom_breadcrumbs_show_form_table'])) {
config_set('custom_breadcrumbs.settings', 'custom_breadcrumbs_show_form_table_' . $form_state['values']['type'], (bool) $form_state['values']['custom_breadcrumbs_show_form_table']);
}
}

Expand Down