edit.php 550 B

123456789101112131415161718
  1. <?php
  2. $answer = elgg_extract('entity', $vars);
  3. $description = [
  4. 'name' => 'description',
  5. 'id' => 'answer_description',
  6. 'value' => elgg_get_sticky_value('answer', 'description', $answer->description),
  7. ];
  8. echo elgg_view('input/longtext', $description);
  9. echo '<div class="mts">';
  10. echo elgg_view('input/hidden', ['name' => 'container_guid', 'value' => $answer->getContainerGUID()]);
  11. echo elgg_view('input/hidden', ['name' => 'guid', 'value' => $answer->getGUID()]);
  12. echo elgg_view('input/submit', ['value' => elgg_echo('submit')]);
  13. echo '</div>';