Files
Chamilo/plugin/hello_world/plugin.php
T
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

42 lines
1.2 KiB
PHP

<?php
/**
* 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).
* These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins).
*
* @package chamilo.plugin
*
* @author Julio Montoya <gugli100@gmail.com>
*/
/**
* Plugin details (must be present).
*/
/* Plugin config */
//the plugin title
$plugin_info['title'] = 'Hello world';
//the comments that go with the plugin
$plugin_info['comment'] = "Shows a hello world message";
//the plugin version
$plugin_info['version'] = '1.0';
//the plugin author
$plugin_info['author'] = 'Julio Montoya';
/* Plugin optional settings */
/*
* This form will be showed in the plugin settings once the plugin was installed
* in the plugin/hello_world/index.php you can have
* access to the value: $plugin_info['settings']['hello_world_show_type']
*/
$form = new FormValidator('hello_world_form');
//A simple select
$options = ['hello_world' => 'Hello World', 'hello' => 'Hello', 'hi' => 'Hi!'];
$form->addElement('select', 'show_type', 'Hello world types', $options);
$form->addButtonSave(get_lang('Save'), 'submit_button');
$plugin_info['settings_form'] = $form;