diff options
author | Dries <dries@buytaert.net> | 2012-08-24 15:28:06 +0200 |
---|---|---|
committer | Dries <dries@buytaert.net> | 2012-08-24 15:28:06 +0200 |
commit | 5bdfbd7eeb00f483505191fa09e547643c64da7c (patch) | |
tree | 2baaa3f7130f5a808274097aa142ff271e321565 /modules/taxonomy | |
parent | f4104a20b5de4da777eba26f29736a3049caf933 (diff) | |
download | brdo-5bdfbd7eeb00f483505191fa09e547643c64da7c.tar.gz brdo-5bdfbd7eeb00f483505191fa09e547643c64da7c.tar.bz2 |
- Patch #1577938 by m-abshir, trogels, jhodgdon: taxonomy_vocabulary_save() documentation needs clarification: new vocabulary versus updating vocabulary.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index df4084c33..5e58f4930 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -386,7 +386,8 @@ function taxonomy_admin_vocabulary_title_callback($vocabulary) { * * @param $vocabulary * A vocabulary object with the following properties: - * - vid: The ID of the vocabulary. + * - vid: (optional) The ID of the vocabulary (omit if creating a new + * vocabulary; only use to update an existing vocabulary). * - name: The human-readable name of the vocabulary. * - machine_name: The machine name of the vocabulary. * - description: (optional) The vocabulary's description. @@ -401,7 +402,7 @@ function taxonomy_admin_vocabulary_title_callback($vocabulary) { * * @return * Status constant indicating whether the vocabulary was inserted (SAVED_NEW) - * or updated(SAVED_UPDATED). + * or updated (SAVED_UPDATED). */ function taxonomy_vocabulary_save($vocabulary) { // Prevent leading and trailing spaces in vocabulary names. |