diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-05-18 01:00:28 -0500 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-05-18 01:00:28 -0500 |
commit | 267b9c435c5d7266f4ce674b84d95bfe1f5a0920 (patch) | |
tree | d6868bb93f70d53451c6813ce8080153725839e8 /modules/system/system.api.php | |
parent | ff3bf28a038edd72b7d67bd9f6476c369e49140e (diff) | |
download | brdo-267b9c435c5d7266f4ce674b84d95bfe1f5a0920.tar.gz brdo-267b9c435c5d7266f4ce674b84d95bfe1f5a0920.tar.bz2 |
Issue #1096446 by plach: Fixed entity_label() is not passing along the () parameter.
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r-- | modules/system/system.api.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 8792057cc..c7db6f1dd 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -87,16 +87,16 @@ function hook_hook_info_alter(&$hooks) { * - uri callback: A function taking an entity as argument and returning the * uri elements of the entity, e.g. 'path' and 'options'. The actual entity * uri can be constructed by passing these elements to url(). - * - label callback: (optional) A function taking an entity as argument and - * returning the label of the entity. The entity label is the main string - * associated with an entity; for example, the title of a node or the - * subject of a comment. If there is an entity object property that defines - * the label, use the 'label' element of the 'entity keys' return - * value component to provide this information (see below). If more complex - * logic is needed to determine the label of an entity, you can instead - * specify a callback function here, which will be called to determine the - * entity label. See also the entity_label() function, which implements this - * logic. + * - label callback: (optional) A function taking an entity and an entity type + * as arguments and returning the label of the entity. The entity label is + * the main string associated with an entity; for example, the title of a + * node or the subject of a comment. If there is an entity object property + * that defines the label, use the 'label' element of the 'entity keys' + * return value component to provide this information (see below). If more + * complex logic is needed to determine the label of an entity, you can + * instead specify a callback function here, which will be called to + * determine the entity label. See also the entity_label() function, which + * implements this logic. * - fieldable: Set to TRUE if you want your entity type to accept fields * being attached to it. * - translation: An associative array of modules registered as field |