|
Ultima modificación |
Ver Log
|
Rev |
Autor |
Línea Nro. |
Línea |
1 |
efrain |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Cocoon Form Builder integration for Moodle
|
|
|
5 |
*
|
|
|
6 |
* @package cocoon_form_builder
|
|
|
7 |
* @copyright ©2021 Cocoon, XTRA Enterprises Ltd. createdbycocoon.com
|
|
|
8 |
* @author Cocoon
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
header("Access-Control-Allow-Origin: *");
|
|
|
12 |
header('Content-Type: application/json');
|
|
|
13 |
|
|
|
14 |
require_once('../../config.php');
|
|
|
15 |
global $USER, $DB, $CFG;
|
|
|
16 |
|
|
|
17 |
$id = 0;
|
|
|
18 |
|
|
|
19 |
$PAGE->set_url('/local/cocoon_form_builder/delete.php?id=' . $id);
|
|
|
20 |
$PAGE->set_context(context_system::instance());
|
|
|
21 |
|
|
|
22 |
$id = $_GET['id'];
|
|
|
23 |
|
|
|
24 |
$DB->delete_records('cocoon_form_builder_forms', array('id'=>$id));
|