Elgg  Version 3.0
excerpt.php
Go to the documentation of this file.
1 <?php
12 if (!$item instanceof ElggEntity) {
13  return;
14 }
15 
16 $length = elgg_extract('length', $vars, 250);
17 
18 $description = $item->description;
19 
if(!$item instanceof ElggEntity) $length
Definition: excerpt.php:16
elgg echo
Translates a string.
Definition: languages.js:43
$description
Definition: excerpt.php:18
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$vars['type']
Definition: save.php:11
elgg_get_excerpt($text, $num_chars=250)
Returns an excerpt.
Definition: output.php:74
$item
Render an excerpt of the description.
Definition: excerpt.php:11