diff options
author | Steve Clay <steve@mrclay.org> | 2013-02-04 21:09:02 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-02-09 10:30:34 -0500 |
commit | 011485988a8fa734c2ed74fec21031b3beebbcfd (patch) | |
tree | 75edb16fa13e82c1fa54d28ae0a43cfa6089e94c /engine/lib/entities.php | |
parent | 3a644351f6bd26fc35b6905a30bbb52e89916078 (diff) | |
download | elgg-011485988a8fa734c2ed74fec21031b3beebbcfd.tar.gz elgg-011485988a8fa734c2ed74fec21031b3beebbcfd.tar.bz2 |
Lots of new @todos :(
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index e3535c741..25c927ac6 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1220,6 +1220,7 @@ function elgg_get_entity_type_subtype_where_sql($table, $types, $subtypes, $pair if ($subtypes) { foreach ($subtypes as $subtype) { // check that the subtype is valid (with ELGG_ENTITIES_NO_VALUE being a valid subtype) + // @todo simplify this logic if (ELGG_ENTITIES_NO_VALUE === $subtype || $subtype_id = get_subtype_id($type, $subtype)) { $subtype_ids[] = (ELGG_ENTITIES_NO_VALUE === $subtype) ? ELGG_ENTITIES_NO_VALUE : $subtype_id; } else { @@ -1461,6 +1462,8 @@ function elgg_list_entities(array $options = array(), $getter = 'elgg_get_entiti * * @tip Use this to generate a list of archives by month for when entities were added or updated. * + * @todo document how to pass in array for $subtype + * * @warning Months are returned in the form YYYYMM. * * @param string $type The type of entity |