create.php 289 B

123456789101112131415
  1. <?php
  2. /**
  3. * River entry for new questions
  4. */
  5. $item = elgg_extract('item', $vars);
  6. $question = $item->getObjectEntity();
  7. if (!($question instanceof ElggQuestion)) {
  8. return;
  9. }
  10. $vars['message'] = elgg_get_excerpt($question->description);
  11. echo elgg_view('river/elements/layout', $vars);