? taxonomy_breadcrumb_make_public_functions.patch Index: taxonomy_breadcrumb.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_breadcrumb/taxonomy_breadcrumb.inc,v retrieving revision 1.2 diff -u -p -r1.2 taxonomy_breadcrumb.inc --- taxonomy_breadcrumb.inc 15 Jan 2009 13:25:37 -0000 1.2 +++ taxonomy_breadcrumb.inc 17 Feb 2009 14:48:41 -0000 @@ -45,7 +45,7 @@ function _taxonomy_breadcrumb_node_get_l * Return the administrator defined vocabulary path for a given vocabulary * ($vid). If a path doesn't exist, NULL is returned. */ -function _taxonomy_breadcrumb_get_vocabulary_path($vid) { +function taxonomy_breadcrumb_get_vocabulary_path($vid) { $result = db_query("SELECT path FROM {taxonomy_breadcrumb_vocabulary} WHERE vid = %d", $vid); $path = NULL; if ($row = db_fetch_array($result)) { @@ -58,7 +58,7 @@ function _taxonomy_breadcrumb_get_vocabu * Return the administrator defined term path for a given term ($tid). * If a path doesn't exist, NULL is returned. */ -function _taxonomy_breadcrumb_get_term_path($tid) { +function taxonomy_breadcrumb_get_term_path($tid) { $result = db_query("SELECT path FROM {taxonomy_breadcrumb_term} WHERE tid = %d", $tid); $path = NULL; if ($row = db_fetch_array($result)) { @@ -81,7 +81,7 @@ function _taxonomy_breadcrumb_generate_b $breadcrumb[] = l(t($home_text), NULL); } // VOCABULARY breadcrumb generation - $vocabulary_path = _taxonomy_breadcrumb_get_vocabulary_path($term->vid); + $vocabulary_path = taxonomy_breadcrumb_get_vocabulary_path($term->vid); if ($vocabulary_path != NULL) { $vocabulary = taxonomy_vocabulary_load($term->vid); $breadcrumb[] = l(_taxonomy_breadcrumb_tt("taxonomy:vocabulary:$term->tid:name", $vocabulary->name), $vocabulary_path); @@ -90,7 +90,7 @@ function _taxonomy_breadcrumb_generate_b // TERM breadcrumb generation $parent_terms = array_reverse(taxonomy_get_parents_all($tid)); foreach ($parent_terms as $parent_term) { - $term_path = _taxonomy_breadcrumb_get_term_path($parent_term->tid); + $term_path = taxonomy_breadcrumb_get_term_path($parent_term->tid); if ($term_path == NULL) { $term_path = taxonomy_term_path(taxonomy_get_term($parent_term->tid)); } Index: taxonomy_breadcrumb.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_breadcrumb/taxonomy_breadcrumb.module,v retrieving revision 1.9 diff -u -p -r1.9 taxonomy_breadcrumb.module --- taxonomy_breadcrumb.module 28 Jan 2009 23:44:30 -0000 1.9 +++ taxonomy_breadcrumb.module 17 Feb 2009 14:48:41 -0000 @@ -136,7 +136,7 @@ function taxonomy_breadcrumb_form_taxono $form['taxonomy_breadcrumb_path'] = array( '#type' => 'textfield', '#title' => t('Breadcrumb path (taxonomy_breadcrumb)'), - '#default_value' => _taxonomy_breadcrumb_get_vocabulary_path($form['vid']['#value']), + '#default_value' => taxonomy_breadcrumb_get_vocabulary_path($form['vid']['#value']), '#maxlength' => 128, '#description' => t('Specify the path this vocabulary links to as a breadcrumb. If blank, the breadcrumb will not appear. Use a relative path and don\'t add a trailing slash. For example: node/42 or my/path/alias.'), '#weight' => 0, @@ -158,7 +158,7 @@ function taxonomy_breadcrumb_form_taxono $form['taxonomy_breadcrumb_path'] = array( '#type' => 'textfield', '#title' => t('Breadcrumb path (taxonomy_breadcrumb)'), - '#default_value' => _taxonomy_breadcrumb_get_term_path($form['tid']['#value']), + '#default_value' => taxonomy_breadcrumb_get_term_path($form['tid']['#value']), '#maxlength' => 128, '#description' => t('Specify the path this term links to as a breadcrumb. If blank, the breadcrumb links to the default taxonomy page. Use a relative path and don\'t add a trailing slash. For example: node/42 or my/path/alias.'), '#weight' => 0, @@ -184,12 +184,12 @@ function taxonomy_breadcrumb_taxonomy($o if ($type == 'vocabulary') { $table = '{taxonomy_breadcrumb_vocabulary}'; $key_type = 'vid'; - $old_path = _taxonomy_breadcrumb_get_vocabulary_path($object['vid']); + $old_path = taxonomy_breadcrumb_get_vocabulary_path($object['vid']); } elseif ($type == 'term') { $table = '{taxonomy_breadcrumb_term}'; $key_type = 'tid'; - $old_path = _taxonomy_breadcrumb_get_term_path($object['tid']); + $old_path = taxonomy_breadcrumb_get_term_path($object['tid']); } $key = isset($object[$key_type]) ? $object[$key_type] : NULL; $new_path = isset($object['taxonomy_breadcrumb_path']) ? $object['taxonomy_breadcrumb_path'] : NULL;