summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-08 07:06:27 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-08 07:06:27 +0000
commit6d13ffa4869fc6a07f5d874a6c3a640349bfd719 (patch)
treea79d6c2849e156df49d5d6acd5a886640b5bfc73 /includes
parent1d9e77a513d02d0922af8d207edf44a7acff08cc (diff)
downloadbrdo-6d13ffa4869fc6a07f5d874a6c3a640349bfd719.tar.gz
brdo-6d13ffa4869fc6a07f5d874a6c3a640349bfd719.tar.bz2
#977346 by jhodgdon, joachim: Fixed More detailed docs for entity_label
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 938fcab03..4d6dddf2e 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -7464,13 +7464,16 @@ function entity_uri($entity_type, $entity) {
/**
* Returns the label of an entity.
*
+ * See the 'label callback' component of the hook_entity_info() return value
+ * for more information.
+ *
* @param $entity_type
- * The entity type; e.g. 'node' or 'user'.
+ * The entity type; e.g., 'node' or 'user'.
* @param $entity
- * The entity for which to generate a path.
+ * The entity for which to generate the label.
*
* @return
- * A string with the entity label (e.g. node title), or FALSE if not found.
+ * The entity label, or FALSE if not found.
*/
function entity_label($entity_type, $entity) {
$label = FALSE;