14 'subtype' =>
'comment',
26 $options[
'joins'] = array(
"JOIN {$db_prefix}entities ce ON e.container_guid = ce.guid");
38 $options[
'wheres'][] =
"ce.owner_guid = $owner_guid";
45 $subtype_ids = array();
53 $subtype_string = implode(
',', $subtype_ids);
54 $options[
'wheres'][] =
"ce.subtype IN ($subtype_string)";
61 $options[
'wheres'][] =
"ce.subtype = $subtype_id";
70 'pagination' =>
false,
71 'list_class' =>
'elgg-latest-comments',
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
get_subtype_id($type, $subtype)
Return the id for a given subtype.
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
if(!$owner_guid) $owner_entity
elgg_get_entities(array $options=array())
Returns an array of entities with optional filtering.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
if(!$collection_name) $id
if(!$num_display) $db_prefix
get_entity($guid)
Loads and returns an entity object from a guid.
if(file_exists($welcome)) $vars