Advertisement
Guest User

Path Breadcrumbs Taxonomy

a guest
Jul 24th, 2013
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. $path_breadcrumb = new stdClass();
  2. $path_breadcrumb->api_version = 1;
  3. $path_breadcrumb->machine_name = 'katalog';
  4. $path_breadcrumb->name = 'Katalog';
  5. $path_breadcrumb->path = 'taxonomy/term/%taxonomy_term';
  6. $path_breadcrumb->data = array(
  7. 'titles' => array(
  8. 0 => 'Каталог',
  9. 1 => '%taxonomy_term:parent',
  10. 2 => '%taxonomy_term:name',
  11. ),
  12. 'paths' => array(
  13. 0 => 'katalog',
  14. 1 => '%taxonomy_term:parent:url',
  15. 2 => '<none>',
  16. ),
  17. 'home' => 1,
  18. 'translatable' => 0,
  19. 'arguments' => array(
  20. 'taxonomy_term' => array(
  21. 'position' => 2,
  22. 'argument' => 'term',
  23. 'settings' => array(
  24. 'identifier' => 'Taxonomy term: ID',
  25. 'input_form' => 'tid',
  26. 'vids' => array(
  27. 2 => '2',
  28. 1 => 0,
  29. ),
  30. 'breadcrumb' => 1,
  31. 'transform' => 0,
  32. ),
  33. ),
  34. ),
  35. 'access' => array(
  36. 'plugins' => array(
  37. 0 => array(
  38. 'name' => 'path_visibility',
  39. 'settings' => array(
  40. 'visibility_setting' => '1',
  41. 'paths' => 'katalog/*',
  42. ),
  43. 'context' => 'empty',
  44. 'not' => FALSE,
  45. ),
  46. ),
  47. 'logic' => 'and',
  48. ),
  49. );
  50. $path_breadcrumb->weight = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement