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.
25 lines
796 B
25 lines
796 B
![]()
8 years ago
|
<?php
|
||
|
/* For licensing terms, see /license.txt */
|
||
|
/**
|
||
|
* Config the plugin
|
||
|
* @author Enrique Alcaraz Lopez
|
||
|
* @package chamilo.plugin.redirection
|
||
|
*/
|
||
|
require_once __DIR__.'/lib/redireccion.class.php';
|
||
|
|
||
|
/* Plugin config */
|
||
|
//the plugin title
|
||
|
$plugin_info['title'] = 'Redireccion personalizada';
|
||
|
//the comments that go with the plugin
|
||
|
$plugin_info['comment'] = "Redirecciona a una url personalizada a un usuario en concreto";
|
||
|
//the plugin version
|
||
|
$plugin_info['version'] = '1';
|
||
|
//the plugin author
|
||
|
$plugin_info['author'] = 'Enrique Alcaraz';
|
||
|
|
||
|
$form = new FormValidator('redirection_form');
|
||
|
$form->addElement('text', 'user_id', get_lang('user_id'));
|
||
|
$form->addElement('text', 'url', get_lang('url'));
|
||
|
$form->addButtonSave(get_lang('Save'), 'submit_button');
|
||
|
|
||
|
$plugin_info['settings_form'] = $form;
|