Adding hello world plugin

skala
Julio Montoya 13 years ago
parent 4f9950cdd1
commit 67f7c60f27
  1. 9
      plugin/hello_world/index.php
  2. 2
      plugin/hello_world/install.php
  3. 19
      plugin/hello_world/plugin.php
  4. 3
      plugin/hello_world/readme.txt
  5. 2
      plugin/hello_world/uninstall.php

@ -0,0 +1,9 @@
<?php
/**
* Controller for example date plugin
* @package chamilo.plugin.date
*/
/**
* Code
*/
echo "<h2>Hello world</h2>";

@ -0,0 +1,2 @@
<?php
/* Script to uninstall the plugin */

@ -0,0 +1,19 @@
<?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)
*/
//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';

@ -0,0 +1,3 @@
README
This file will be linked in the plugin settings page

@ -0,0 +1,2 @@
<?php
/* Script to install the plugin */
Loading…
Cancel
Save