install.php 991 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Script for install iassign filter in moodle.
  4. *
  5. * Release Notes:
  6. * - v 1.0 2013/11/28
  7. * + Enable by default filter
  8. * + Enable filter content and titles.
  9. *
  10. * @author Luciano Oliveira Borges
  11. * @author Patricia Alves Rodrigues
  12. * @author Leônidas O. Brandão
  13. * @version v 1.0 2013/11/28
  14. * @package iassign_filter
  15. * @since 2010/11/28
  16. * @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
  17. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  18. * @see moodle_text_filter
  19. */
  20. /**
  21. * Moodle core defines constant MOODLE_INTERNAL which shall be used to make sure that the script is included and not called directly.
  22. */
  23. defined('MOODLE_INTERNAL') || die();
  24. function xmldb_filter_iassign_filter_install() {
  25. global $CFG;
  26. require_once("$CFG->libdir/filterlib.php");
  27. filter_set_global_state('filter/iassign_filter', TEXTFILTER_ON);
  28. filter_set_applies_to_strings('filter/iassign_filter', true);
  29. }