.. _fupdatecollection: ######################################################## ``update_collection`` — Update an existing collection. ######################################################## :doc:`Collection-related functions ` ******* Summary ******* .. include:: /Reference/libraries/globals/summary/update_collection.rst .. php:function:: update_collection($collection, $metadata = array(), $elementTexts = array()) Update an existing collection. :type $collection: Collection|int :param $collection: Either an Collection object or the ID for the collection. :type $metadata: array :param $metadata: Set of options that can be passed to the collection. :type $elementTexts: array :param $elementTexts: The element texts for the collection. :returns: Collection ***** Usage ***** .. include:: /Reference/libraries/globals/usage/update_collection.rst ******** Examples ******** .. include:: /Reference/libraries/globals/examples/update_collection.rst ******** See Also ******** .. include:: /Reference/libraries/globals/see_also/update_collection.rst