~catch-drupal/+junk/pressflow-content-cache-variable

« back to all changes in this revision

Viewing changes to modules/taxonomy/taxonomy.module

  • Committer: David Strauss
  • Date: 2010-06-18 17:01:06 UTC
  • mfrom: (82.1.2 merge-drupal-6.17)
  • Revision ID: david@fourkitchens.com-20100618170106-eveqf9sepqonszf9
Drupal 6.17 (via testing branch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: taxonomy.module,v 1.414.2.13 2010/03/01 10:08:21 goba Exp $
 
2
// $Id: taxonomy.module,v 1.414.2.14 2010/05/11 10:19:04 goba Exp $
3
3
 
4
4
/**
5
5
 * @file
14
14
}
15
15
 
16
16
/**
17
 
 * Implementation of hook_theme()
 
17
 * Implementation of hook_theme().
18
18
 */
19
19
function taxonomy_theme() {
20
20
  return array(
412
412
 
413
413
/**
414
414
 * Generate a form element for selecting terms from a vocabulary.
 
415
 *
 
416
 * @param $vid
 
417
 *   The vocabulary ID to generate a form element for.
 
418
 * @param $value
 
419
 *   The existing value of the term(s) in this vocabulary to use by default.
 
420
 * @param $help
 
421
 *   Optional help text to use for the form element. If specified, this value
 
422
 *   MUST be properly sanitized and filtered (e.g. with filter_xss_admin() or
 
423
 *   check_plain() if it is user-supplied) to prevent XSS vulnerabilities. If
 
424
 *   omitted, the help text stored with the vocaulary (if any) will be used.
 
425
 * @return
 
426
 *   An array describing a form element to select terms for a vocabulary.
 
427
 *
 
428
 * @see _taxonomy_term_select()
 
429
 * @see filter_xss_admin()
415
430
 */
416
431
function taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') {
417
432
  $vocabulary = taxonomy_vocabulary_load($vid);