From 285c4b75026253423a665834977b0e4a9249684e Mon Sep 17 00:00:00 2001 From: gerdt Date: Tue, 2 Jun 2020 10:17:12 +0200 Subject: [PATCH] removed news as hansel path --- .../wim_breadcrumb.features.hansel.inc | 141 +++++++++--------- .../wim_breadcrumb/wim_breadcrumb.info | 2 +- 2 files changed, 68 insertions(+), 75 deletions(-) diff --git a/modules/features/wim_breadcrumb/wim_breadcrumb.features.hansel.inc b/modules/features/wim_breadcrumb/wim_breadcrumb.features.hansel.inc index 6af77b85..04073b57 100644 --- a/modules/features/wim_breadcrumb/wim_breadcrumb.features.hansel.inc +++ b/modules/features/wim_breadcrumb/wim_breadcrumb.features.hansel.inc @@ -1,4 +1,5 @@ 1, 'start_rid' => 1, - 'rules' => [ - 1 => [ + 'rules' => array( + 1 => array( 'rid' => 1, 'pid' => NULL, 'name' => 'start', 'crumb_action' => 'add single link', - 'crumb_action_arguments' => [ + 'crumb_action_arguments' => array( 'title' => 'Home', 'translate' => 0, 'remove_tokens' => 0, 'path' => '', 'skipalias' => 0, - ], + ), 'action' => 'switch', 'handler' => 'url argument', - 'arguments' => [], - 'children' => [ + 'arguments' => array(), + 'children' => array( 0 => 3, 1 => 6, - ], - ], - 2 => [ + ), + ), + 2 => array( 'rid' => 2, 'pid' => 5, 'name' => '', 'crumb_action' => 'add link to current page', - 'crumb_action_arguments' => [], + 'crumb_action_arguments' => array(), 'action' => 'leave', 'restore' => FALSE, - 'children' => [], - ], - 3 => [ + 'children' => array(), + ), + 3 => array( 'rid' => 3, 'pid' => 1, 'name' => '', 'crumb_action' => '', - 'crumb_action_arguments' => [], + 'crumb_action_arguments' => array(), 'action' => 'switch', 'handler' => 'node type', - 'arguments' => [], - 'children' => [ + 'arguments' => array(), + 'children' => array( 0 => 5, - ], - ], - 4 => [ + ), + ), + 4 => array( 'rid' => 4, 'pid' => 4, 'name' => '', 'crumb_action' => 'add parents', - 'crumb_action_arguments' => [], + 'crumb_action_arguments' => array(), 'action' => 'switch', 'handler' => 'url argument', - 'arguments' => [], - 'children' => [ + 'arguments' => array(), + 'children' => array( 0 => 4, - ], - ], - 5 => [ + ), + ), + 5 => array( 'rid' => 5, 'pid' => 3, 'name' => '', 'crumb_action' => 'add parents', - 'crumb_action_arguments' => [], + 'crumb_action_arguments' => array(), 'action' => 'switch', 'handler' => 'url argument', - 'arguments' => [], - 'children' => [ + 'arguments' => array(), + 'children' => array( 0 => 2, 1 => 8, - ], - ], - 6 => [ + ), + ), + 6 => array( 'rid' => 6, 'pid' => 1, 'name' => 'faq', 'crumb_action' => 'add single link', - 'crumb_action_arguments' => [ + 'crumb_action_arguments' => array( 'title' => 'FAQ', 'translate' => 1, 'remove_tokens' => 0, 'path' => 'faq', 'skipalias' => 0, - ], + ), 'action' => 'switch', 'handler' => 'request uri', - 'arguments' => [ + 'arguments' => array( 'mode' => 0, 'cs' => 0, - ], - 'children' => [ + ), + 'children' => array( 0 => 7, - ], - ], - 7 => [ + ), + ), + 7 => array( 'rid' => 7, 'pid' => 6, 'name' => 'faq/', 'crumb_action' => 'add link to current page', - 'crumb_action_arguments' => [], + 'crumb_action_arguments' => array(), 'action' => 'leave', 'restore' => FALSE, - 'children' => [], - ], - 8 => [ + 'children' => array(), + ), + 8 => array( 'rid' => 8, 'pid' => 5, 'name' => 'node', 'crumb_action' => 'add link to node', - 'crumb_action_arguments' => [], + 'crumb_action_arguments' => array(), 'action' => 'leave', 'restore' => FALSE, - 'children' => [], - ], - ], - 'nodetypes' => [ - 'agenda' => [ + 'children' => array(), + ), + ), + 'nodetypes' => array( + 'agenda' => array( 'path' => 'agenda', 'title' => 'Agenda', - ], - 'faq' => [ + ), + 'faq' => array( 'path' => 'faq', 'title' => 'FAQ', - ], - 'news' => [ - 'path' => 'news', - 'title' => 'News', - ], - ], - ]; - $elements['settings'] = [ - 'variables' => [ + ), + ), + ); + $elements['settings'] = array( + 'variables' => array( 'hansel_breadcrumb_last_item_hide' => 0, 'hansel_breadcrumb_last_item_link' => 1, 'hansel_cache' => 0, 'hansel_cache_whole' => 0, 'hansel_max_item_count' => 0, 'hansel_max_item_length' => 0, - 'hansel_nodetypes' => [ - 'agenda' => [ + 'hansel_nodetypes' => array( + 'agenda' => array( 'path' => 'agenda', 'title' => 'Agenda', - ], - 'faq' => [ + ), + 'faq' => array( 'path' => 'faq', 'title' => 'FAQ', - ], - 'news' => [ - 'path' => 'news', - 'title' => 'News', - ], - ], + ), + ), 'hansel_parent_lookup_paths' => 0, 'hansel_removed_items_replacement' => '(...)', 'hansel_remove_first_token_item' => 1, @@ -171,7 +164,7 @@ function wim_breadcrumb_hansel_default() { 'hansel_set_menu_name' => 0, 'hansel_trim_ellipsis' => '...', 'hansel_trim_on_word_boundary' => 1, - ], - ]; + ), + ); return $elements; } diff --git a/modules/features/wim_breadcrumb/wim_breadcrumb.info b/modules/features/wim_breadcrumb/wim_breadcrumb.info index 6f1e674d..a8e15a24 100644 --- a/modules/features/wim_breadcrumb/wim_breadcrumb.info +++ b/modules/features/wim_breadcrumb/wim_breadcrumb.info @@ -2,7 +2,7 @@ name = WIM Breadcrumb description = Breadcrumb feature with Hansel configurations. core = 7.x package = WIM -version = 7.x-1.0 +version = 7.x-1.1 dependencies[] = hansel dependencies[] = pathauto features[features_api][] = api:2