plugin.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different).
  4. * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins)
  5. * @package chamilo.plugin
  6. * @author Julio Montoya <gugli100@gmail.com>
  7. */
  8. /**
  9. * Plugin details (must be present)
  10. */
  11. //the plugin title
  12. $plugin_info['title'] = 'Hide/Unhide the Login/Password default form';
  13. //the comments that go with the plugin
  14. $plugin_info['comment'] = "If you use another way of authentication than local, you may want to hide the Login/Password default Form to avoid users mistakes. This plugin replace the Login/Password form with a text that unhide the Login/Password form if you click on it.";
  15. //the plugin version
  16. $plugin_info['version'] = '1.0';
  17. //the plugin author
  18. $plugin_info['author'] = 'Hubert Borderiou';
  19. //the plugin configuration
  20. $form = new FormValidator('add_cas_button_form');
  21. $form->addElement('text', 'label', 'Text label', '');
  22. //get default value
  23. $tab_default_formLogin_hide_unhide_label = api_get_setting('formLogin_hide_unhide_label');
  24. $defaults = array();
  25. $defaults['label'] = $tab_default_formLogin_hide_unhide_label['formLogin_hide_unhide'];
  26. $form->setDefaults($defaults);
  27. //display form
  28. $plugin_info['settings_form'] = $form;
  29. //set the templates that are going to be used
  30. $plugin_info['templates'] = array('template.tpl');