Removed obsolete $ in source files
This commit is contained in:
parent
a39c010e06
commit
e5f2b64d98
146 changed files with 836 additions and 1081 deletions
|
@ -1,6 +1,4 @@
|
|||
<?php
|
||||
// $Id: custom_breadcrumbs_taxonomy.module,v 1.1.2.26 2010/12/30 18:36:25 mgn Exp $
|
||||
|
||||
/**
|
||||
* @file
|
||||
* This module implements taxonomy_based breadcrumbs using a hybrid of methods
|
||||
|
@ -12,7 +10,7 @@
|
|||
*
|
||||
* - The HOME breadcrumb (if present) links to the home page. The text
|
||||
* displayed for HOME is administrator configurable on the custom_breadcrumbs
|
||||
* settings page.
|
||||
* settings page.
|
||||
* - The VOCABULARY breadcrumb (if present) will link to an administrator
|
||||
* defined page. If the VOCABULARY does not have an administrator
|
||||
* defined page, it will not appear in the breadcrumb trail.
|
||||
|
@ -25,8 +23,8 @@
|
|||
* mysite >> term >> term
|
||||
* home >> vocabulary >> term >> term
|
||||
* vocabulary >> term >> term
|
||||
*
|
||||
* If 'Use taxonomy hierarchy' is not checked, then the titles and paths used to
|
||||
*
|
||||
* If 'Use taxonomy hierarchy' is not checked, then the titles and paths used to
|
||||
* construct the breadcrumb should be defined at the custom_breadcrumbs administration
|
||||
* page in the same as other custom breadcrumbs. For a node containing multiple terms
|
||||
* and vocabularies, the lightest term with a visible, matching custom breadcrumb is
|
||||
|
@ -52,14 +50,14 @@ define('CUSTOM_BREADCRUMBS_TAXONOMY_NODE_TYPES_DEFAULT', 'book');
|
|||
function custom_breadcrumbs_taxonomy_cb_breadcrumb_info() {
|
||||
$breadcrumb_type_info = array();
|
||||
$breadcrumb_type_info['taxonomy_vocabulary'] = array(
|
||||
'table' => 'custom_breadcrumbs_taxonomy_vocabulary',
|
||||
'field' => 'vid',
|
||||
'table' => 'custom_breadcrumbs_taxonomy_vocabulary',
|
||||
'field' => 'vid',
|
||||
'type' => 'taxonomy_vocabulary',
|
||||
'name_constructor' => '_custom_breadcrumbs_taxonomy_vocabulary_breadcrumb_name'
|
||||
);
|
||||
$breadcrumb_type_info['taxonomy_term'] = array(
|
||||
'table' => 'custom_breadcrumbs_taxonomy_term',
|
||||
'field' => 'tid',
|
||||
'table' => 'custom_breadcrumbs_taxonomy_term',
|
||||
'field' => 'tid',
|
||||
'type' => 'taxonomy_term',
|
||||
'name_constructor' => '_custom_breadcrumbs_taxonomy_term_breadcrumb_name'
|
||||
);
|
||||
|
@ -71,7 +69,7 @@ function custom_breadcrumbs_taxonomy_cb_breadcrumb_info() {
|
|||
*
|
||||
* @param $breadcrumb
|
||||
* The breadcrumb object.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
* A text string that will be used as the breadcrumb name.
|
||||
*/
|
||||
|
@ -79,11 +77,11 @@ function _custom_breadcrumbs_taxonomy_term_breadcrumb_name($breadcrumb) {
|
|||
$names = array();
|
||||
$parents = taxonomy_get_parents_all($breadcrumb->tid);
|
||||
while ($parent = array_shift($parents)) {
|
||||
$names[] = $parent->name;
|
||||
$names[] = $parent->name;
|
||||
}
|
||||
$term = taxonomy_get_term($breadcrumb->tid);
|
||||
$vocabulary = taxonomy_vocabulary_load($term->vid);
|
||||
$names[] = $vocabulary->name;
|
||||
$names[] = $vocabulary->name;
|
||||
$names = array_reverse($names);
|
||||
$output = implode('>', $names);
|
||||
return $output;
|
||||
|
@ -94,7 +92,7 @@ function _custom_breadcrumbs_taxonomy_term_breadcrumb_name($breadcrumb) {
|
|||
*
|
||||
* @param $breadcrumb
|
||||
* The breadcrumb object.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
* A text string that will be used as the breadcrumb name.
|
||||
*/
|
||||
|
@ -449,7 +447,7 @@ function custom_breadcrumbs_taxonomy_form_taxonomy_form_term_alter(&$form, &$for
|
|||
/**
|
||||
* Implements hook_cb_node_form_table.
|
||||
*
|
||||
* @param $node
|
||||
* @param $node
|
||||
* The node object being edited
|
||||
*
|
||||
* @return $breadcrumbs
|
||||
|
@ -482,7 +480,7 @@ function custom_breadcrumbs_taxonomy_cb_node_form_table($node) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Determines if the current node is one of the types listed on the advanced settings page.
|
||||
* Determines if the current node is one of the types listed on the advanced settings page.
|
||||
*
|
||||
* @param $nodetype
|
||||
* The node type being considered for a custom breadcrumb.
|
||||
|
|
Reference in a new issue