Skip to content
Open
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
141 changes: 67 additions & 74 deletions modules/features/wim_breadcrumb/wim_breadcrumb.features.hansel.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @file
* wim_breadcrumb.features.hansel.inc
Expand All @@ -8,161 +9,153 @@
* Implements hook_hansel_default().
*/
function wim_breadcrumb_hansel_default() {
$elements = [];
$elements['config'] = [
$elements = array();
$elements['config'] = array(
'version' => 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' => '<front>',
'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' => '<default>',
'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' => '<default>',
'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' => '<default>',
'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' => '<default>',
'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,
Expand All @@ -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;
}
2 changes: 1 addition & 1 deletion modules/features/wim_breadcrumb/wim_breadcrumb.info
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down