Removed obsolete $ in source files

This commit is contained in:
Manuel Cillero 2017-08-29 14:13:02 +02:00
parent a39c010e06
commit e5f2b64d98
146 changed files with 836 additions and 1081 deletions

View file

@ -1,6 +1,4 @@
<?php
// $Id: custom_breadcrumbs_taxonomy.admin.inc,v 1.1.2.8 2010/04/25 20:52:23 mgn Exp $
/**
* @file
* Administration pages for custom_breadcrumbs_taxonomy.

View file

@ -1,6 +1,4 @@
<?php
// $Id: custom_breadcrumbs_taxonomy.inc,v 1.1.2.19 2010/12/30 18:36:25 mgn Exp $
/**
* @file
* Helper functions for custom_breadcrumbs_taxonomy.
@ -179,7 +177,7 @@ function custom_breadcrumbs_taxonomy_node_get_lightest_term($node) {
if (!empty($terms)) {
if (count($terms) > 1) {
foreach ($terms as $term) {
// Only consider terms in the lightest vocabulary.
// Only consider terms in the lightest vocabulary.
if (!isset($vid)) {
$vid = $term->vid;
}

View file

@ -1,4 +1,3 @@
; $Id: custom_breadcrumbs_taxonomy.info,v 1.1.2.2 2009/05/30 22:02:07 mgn Exp $
name = Custom Breadcrumbs for Taxonomy
description = "Enables taxonomy based breadcrumbs and allows for node assosciations with taxonomy terms."
package = Custom Breadcrumbs
@ -11,4 +10,3 @@ version = "6.x-2.0-rc1"
core = "6.x"
project = "custom_breadcrumbs"
datestamp = "1294462254"

View file

@ -1,6 +1,4 @@
<?php
// $Id: custom_breadcrumbs_taxonomy.install,v 1.1.2.10 2011/01/08 03:53:17 mgn Exp $
/**
* @file
* Install file for the custom_breadcrumbs_taxonomy module.
@ -131,7 +129,7 @@ function custom_breadcrumbs_taxonomy_schema() {
),
'primary key' => array('bid'),
);
$schema['custom_breadcrumbs_taxonomy_vocabulary'] = array(
'description' => 'Stores custom breadcrumbs for taxonomy vocabularies',
'fields' => array(
@ -211,6 +209,6 @@ function custom_breadcrumbs_taxonomy_update_6200() {
$ret = array();
db_add_field($ret, 'custom_breadcrumbs_taxonomy_term', 'name', array('type' => 'varchar', 'length' => 128, 'NOT NULL' => FALSE, 'description' => 'An optional name for the custom breadcrumb.'));
db_add_field($ret, 'custom_breadcrumbs_taxonomy_vocabulary', 'name', array('type' => 'varchar', 'length' => 128, 'NOT NULL' => FALSE, 'description' => 'An optional name for the custom breadcrumb.'));
return $ret;
}

View file

@ -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.