From 5bdfbd7eeb00f483505191fa09e547643c64da7c Mon Sep 17 00:00:00 2001 From: Dries Date: Fri, 24 Aug 2012 15:28:06 +0200 Subject: - Patch #1577938 by m-abshir, trogels, jhodgdon: taxonomy_vocabulary_save() documentation needs clarification: new vocabulary versus updating vocabulary. --- modules/taxonomy/taxonomy.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/taxonomy') 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. -- cgit v1.2.3