You are here

function crumbs_admin_node_parent_form_submit in Crumbs, the Breadcrumbs suite 7

File

admin/crumbs.node_parent.inc, line 92

Code

function crumbs_admin_node_parent_form_submit(&$form, &$form_state) {
  $settings = $form_state['values']['types'];
  foreach ($settings as $type_name => $setting) {
    if (empty($setting)) {
      unset($settings[$type_name]);
    }
  }
  variable_set('crumbs_node_parent_patterns', $settings);
}