By mcdruid on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x
Introduced in version:
7.68
Issue links:
Description:
In Drupal 7, the data element of the $options parameter previously had to be a string containing the request body:
* @param array $options
* (optional) An array that can have one or more of the following elements:
* - data: A string containing the request body, formatted as
* 'param=value¶m=value&...'; to generate this, use http_build_query().
* Defaults to NULL.
It's now possible to pass this as an array, which will be converted automatically.
* @param array $options
* (optional) An array that can have one or more of the following elements:
* - data: An array containing the values for the request body or a string
* containing the request body, formatted as
* 'param=value¶m=value&...'; to generate this, use
* drupal_http_build_query(). Defaults to NULL. Impacts:
Module developers