Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion custom_breadcrumbs.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
9 changes: 5 additions & 4 deletions custom_breadcrumbs.install
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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');
}
}