[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/modules/taxonomy/ -> taxonomy.module (summary)

(no description)

File Size: 1424 lines (51 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 46 functions

  taxonomy_perm()
  taxonomy_theme()
  taxonomy_link()
  taxonomy_term_path()
  taxonomy_menu()
  taxonomy_save_vocabulary()
  taxonomy_del_vocabulary()
  taxonomy_check_vocabulary_hierarchy()
  taxonomy_save_term()
  taxonomy_del_term()
  taxonomy_form()
  taxonomy_form_all()
  taxonomy_get_vocabularies()
  taxonomy_form_alter()
  taxonomy_preview_terms()
  taxonomy_node_get_terms_by_vocabulary()
  taxonomy_node_get_terms()
  taxonomy_node_validate()
  taxonomy_node_save()
  taxonomy_node_delete()
  taxonomy_node_delete_revision()
  taxonomy_node_type()
  taxonomy_get_related()
  taxonomy_get_parents()
  taxonomy_get_parents_all()
  taxonomy_get_children()
  taxonomy_get_tree()
  taxonomy_get_synonyms()
  taxonomy_get_synonym_root()
  taxonomy_term_count_nodes()
  _taxonomy_term_children()
  taxonomy_get_term_by_name()
  taxonomy_vocabulary_load()
  taxonomy_get_term()
  _taxonomy_term_select()
  theme_taxonomy_term_select()
  taxonomy_select_nodes()
  taxonomy_render_nodes()
  taxonomy_nodeapi()
  taxonomy_node_update_index()
  taxonomy_terms_parse_string()
  taxonomy_rss_item()
  taxonomy_help()
  _taxonomy_get_tid_from_term()
  taxonomy_implode_tags()
  taxonomy_hook_info()

Functions
Functions that are not part of a class:

taxonomy_perm()   X-Ref
Implementation of hook_perm().


taxonomy_theme()   X-Ref
Implementation of hook_theme().


taxonomy_link($type, $node = NULL)   X-Ref
Implementation of hook_link().

This hook is extended with $type = 'taxonomy terms' to allow themes to
print lists of terms associated with a node. Themes can print taxonomy
links with:

if (module_exists('taxonomy')) {
$terms = taxonomy_link('taxonomy terms', $node);
print theme('links', $terms);
}

taxonomy_term_path($term)   X-Ref
For vocabularies not maintained by taxonomy.module, give the maintaining
module a chance to provide a path for terms in that vocabulary.

param: $term
return:

taxonomy_menu()   X-Ref
Implementation of hook_menu().


taxonomy_save_vocabulary(&$edit)   X-Ref
No description

taxonomy_del_vocabulary($vid)   X-Ref
Delete a vocabulary.

param: $vid
return:

taxonomy_check_vocabulary_hierarchy($vocabulary, $changed_term)   X-Ref
Dynamically check and update the hierarachy flag of a vocabulary.
Checks and updates the hierarchy flag of a vocabulary.

Checks the current parents of all terms in a vocabulary and updates the
vocabulary's hierarchy setting to the lowest possible level. If no term
has parent terms then the vocabulary will be given a hierarchy of 0.
If any term has a single parent then the vocabulary will be given a
hierarchy of 1. If any term has multiple parents then the vocabulary
will be given a hierarchy of 2.

param: $vocabulary
param: $changed_term
return:

taxonomy_save_term(&$form_values)   X-Ref
Helper function for taxonomy_form_term_submit().

param: $form_state['values']
return:

taxonomy_del_term($tid)   X-Ref
Delete a term.

param: $tid
return:

taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy')   X-Ref
Generate a form element for selecting terms from a vocabulary.

param: $vid
param: $value
param: $help
return:

taxonomy_form_all($free_tags = 0)   X-Ref
Generate a set of options for selecting a term from all vocabularies.


taxonomy_get_vocabularies($type = NULL)   X-Ref
Return an array of all vocabulary objects.

param: $type

taxonomy_form_alter(&$form, $form_state, $form_id)   X-Ref
Implementation of hook_form_alter().
Generate a form for selecting terms to associate with a node.
We check for taxonomy_override_selector before loading the full
vocabulary, so contrib modules can intercept before hook_form_alter
and provide scalable alternatives.


taxonomy_preview_terms($node)   X-Ref
Helper function to convert terms after a preview.

After preview the tags are an array instead of proper objects. This function
converts them back to objects with the exception of 'free tagging' terms,
because new tags can be added by the user before preview and those do not
yet exist in the database. We therefore save those tags as a string so
we can fill the form again after the preview.

taxonomy_node_get_terms_by_vocabulary($node, $vid, $key = 'tid')   X-Ref
Find all terms associated with the given node, within one vocabulary.


taxonomy_node_get_terms($node, $key = 'tid', $reset = FALSE)   X-Ref
Find all terms associated with the given node, ordered by vocabulary and term weight.


taxonomy_node_validate(&$node)   X-Ref
Make sure incoming vids are free tagging enabled.


taxonomy_node_save(&$node, $terms)   X-Ref
Save term associations for a given node.


taxonomy_node_delete($node)   X-Ref
Remove associations of a node to its terms.


taxonomy_node_delete_revision($node)   X-Ref
Remove associations of a node to its terms.


taxonomy_node_type($op, $info)   X-Ref
Implementation of hook_node_type().


taxonomy_get_related($tid, $key = 'tid')   X-Ref
Find all term objects related to a given term ID.


taxonomy_get_parents($tid, $key = 'tid')   X-Ref
Find all parents of a given term ID.


taxonomy_get_parents_all($tid)   X-Ref
Find all ancestors of a given term ID.


taxonomy_get_children($tid, $vid = 0, $key = 'tid')   X-Ref
Find all children of a term ID.


taxonomy_get_tree($vid, $parent = 0, $depth = -1, $max_depth = NULL)   X-Ref
Create a hierarchical representation of a vocabulary.

param: $vid
param: $parent
param: $depth
param: $max_depth
return:

taxonomy_get_synonyms($tid)   X-Ref
Return an array of synonyms of the given term ID.


taxonomy_get_synonym_root($synonym)   X-Ref
Return the term object that has the given string as a synonym.


taxonomy_term_count_nodes($tid, $type = 0)   X-Ref
Count the number of published nodes classified by a term.

param: $tid
param: $type
return: int

_taxonomy_term_children($tid)   X-Ref
Helper for taxonomy_term_count_nodes(). Used to find out
which terms are children of a parent term.

param: $tid
return: array

taxonomy_get_term_by_name($name)   X-Ref
Try to map a string to an existing term, as for glossary use.

Provides a case-insensitive and trimmed mapping, to maximize the
likelihood of a successful match.

param: name
return:

taxonomy_vocabulary_load($vid, $reset = FALSE)   X-Ref
Return the vocabulary object matching a vocabulary ID.

param: $vid
param: $reset
return:

taxonomy_get_term($tid, $reset = FALSE)   X-Ref
Return the term object matching a term ID.

param: $tid
param: $reset
return: Object

_taxonomy_term_select($title, $name, $value, $vocabulary_id, $description, $multiple, $blank, $exclude = array()   X-Ref
Create a select form element for a given taxonomy vocabulary.

NOTE: This function expects input that has already been sanitized and is
safe for display. Callers must properly sanitize the $title and
$description arguments to prevent XSS vulnerabilities.

param: $title
param: $name
param: $value
param: $vocabulary_id
param: $description
param: $multiple
param: $blank
param: $exclude
return:

theme_taxonomy_term_select($element)   X-Ref
Format the selection field for choosing terms
(by deafult the default selection field is used).


taxonomy_select_nodes($tids = array()   X-Ref
Finds all nodes that match selected taxonomy conditions.

param: $tids
param: $operator
param: $depth
param: $pager
param: $order
return:

taxonomy_render_nodes($result)   X-Ref
Accepts the result of a pager_query() call, such as that performed by
taxonomy_select_nodes(), and formats each node along with a pager.


taxonomy_nodeapi(&$node, $op, $arg = 0)   X-Ref
Implementation of hook_nodeapi().


taxonomy_node_update_index(&$node)   X-Ref
Implementation of hook_nodeapi('update_index').


taxonomy_terms_parse_string($str_tids)   X-Ref
Parses a comma or plus separated string of term IDs.

param: $str_tids
return: an associative array with an operator key (either 'and'

taxonomy_rss_item($node)   X-Ref
Provides category information for RSS feeds.


taxonomy_help($path, $arg)   X-Ref
Implementation of hook_help().


_taxonomy_get_tid_from_term($term)   X-Ref
Helper function for array_map purposes.


taxonomy_implode_tags($tags, $vid = NULL)   X-Ref
Implodes a list of tags of a certain vocabulary into a string.


taxonomy_hook_info()   X-Ref
Implementation of hook_hook_info().




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7