Mercurial > defr > drupal > core
comparison modules/taxonomy/taxonomy.module @ 11:589fb7c02327 6.5
Drupal 6.5
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:19 +0100 |
parents | fff6d4c8c043 |
children |
comparison
equal
deleted
inserted
replaced
10:6f15c9d74937 | 11:589fb7c02327 |
---|---|
1 <?php | 1 <?php |
2 // $Id: taxonomy.module,v 1.414.2.4 2008/06/25 08:00:57 goba Exp $ | 2 // $Id: taxonomy.module,v 1.414.2.5 2008/09/17 12:55:37 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Enables the organization of content into categories. | 6 * Enables the organization of content into categories. |
7 */ | 7 */ |
971 * | 971 * |
972 * @param $vid | 972 * @param $vid |
973 * The vocabulary's ID | 973 * The vocabulary's ID |
974 * | 974 * |
975 * @return | 975 * @return |
976 * The vocabulary object with all of its metadata, if exists, NULL otherwise. | 976 * The vocabulary object with all of its metadata, if exists, FALSE otherwise. |
977 * Results are statically cached. | 977 * Results are statically cached. |
978 */ | 978 */ |
979 function taxonomy_vocabulary_load($vid) { | 979 function taxonomy_vocabulary_load($vid) { |
980 static $vocabularies = array(); | 980 static $vocabularies = array(); |
981 | 981 |
994 $voc->nodes = $node_types; | 994 $voc->nodes = $node_types; |
995 $vocabularies[$vid] = $voc; | 995 $vocabularies[$vid] = $voc; |
996 } | 996 } |
997 } | 997 } |
998 | 998 |
999 // Return NULL if this vocabulary does not exist. | 999 // Return FALSE if this vocabulary does not exist. |
1000 return !empty($vocabularies[$vid]) ? $vocabularies[$vid] : NULL; | 1000 return !empty($vocabularies[$vid]) ? $vocabularies[$vid] : FALSE; |
1001 } | 1001 } |
1002 | 1002 |
1003 /** | 1003 /** |
1004 * Return the term object matching a term ID. | 1004 * Return the term object matching a term ID. |
1005 * | 1005 * |