Issue #1973762 by chx, cosmicdreams, yched: Add example to field_info_field_map return docs

merge-requests/26/head
Jennifer Hodgdon 2013-04-23 07:39:56 -07:00
parent 694dc23de4
commit 496e56b341
1 changed files with 11 additions and 0 deletions

View File

@ -449,6 +449,17 @@ function field_info_bundles($entity_type = NULL) {
* - type: The field type.
* - bundles: The bundles in which the field appears, as an array with entity
* types as keys and the array of bundle names as values.
* Example:
* @code
* array(
* 'body' => array(
* 'bundles' => array(
* 'node' => array('page', 'article'),
* ),
* 'type' => 'text_with_summary',
* ),
* );
* @endcode
*/
function field_info_field_map() {
$cache = _field_info_field_cache();