Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/plugin/text/plugin.php

40 lines
1.2 KiB

<?php
/* See license terms in /license.txt */
/**
* 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 config */
//the plugin title
$plugin_info['title'] = 'Text';
//the comments that go with the plugin
$plugin_info['comment'] = "Displays a text message";
//the plugin version
$plugin_info['version'] = '1.0';
//the plugin author
$plugin_info['author'] = 'Julio Montoya';
/* Plugin optional settings */
$form = new FormValidator('text_form');
$form->add_textarea('content', get_lang('Content'));
$form->addElement('style_submit_button', 'submit_button', get_lang('Save'));
$content = '';
$setting = api_get_full_setting('text_content');
if (!empty($setting) && is_array($setting)) {
$setting = current($setting);
if (isset($setting['selected_value'])) {
$content = $setting['selected_value'];
}
}
$form->setDefaults(array('content' => $content));
$plugin_info['settings_form'] = $form;