diff --git a/custom_breadcrumbs.admin.inc b/custom_breadcrumbs.admin.inc index 0324272..6d142a3 100644 --- a/custom_breadcrumbs.admin.inc +++ b/custom_breadcrumbs.admin.inc @@ -137,7 +137,7 @@ function custom_breadcrumbs_page() { * -1 if the second object is greater than the first, */ function _custom_breadcrumbs_sort_cmp($bc1, $bc2) { - $custom_breadcrumbs_sort = config_get('custom_breadcrumbs.settings', 'custom_breadcrumbs_sort', array( + $custom_breadcrumbs_sort = state_get('custom_breadcrumbs_sort', array( 'direction' => array( 'name' => 'asc', 'breadcrumb_type' => 'asc', diff --git a/custom_breadcrumbs.install b/custom_breadcrumbs.install index 22b39d6..05b95e4 100644 --- a/custom_breadcrumbs.install +++ b/custom_breadcrumbs.install @@ -116,6 +116,7 @@ function custom_breadcrumbs_update_1000() { update_variable_del('custom_breadcrumbs_even_odd_class'); update_variable_del('custom_breadcrumbs_type_class'); update_variable_del('custom_breadcrumbs_append_bid_class'); + update_variable_del('custom_breadcrumbs_sort'); // Rename language column to langcode. $langcode_spec = array( @@ -143,8 +144,8 @@ function custom_breadcrumbs_update_1000() { /** * Remove unneeded PHP visibility field. */ - function custom_breadcrumbs_update_2000 () { - if (db_field_exists('custom_breadcrumb', 'visibility_php')) { - db_drop_field('custom_breadcrumb', 'visibility_php'); - } +function custom_breadcrumbs_update_2000 () { + if (db_field_exists('custom_breadcrumb', 'visibility_php')) { + db_drop_field('custom_breadcrumb', 'visibility_php'); } +}