-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdetails.php
More file actions
executable file
·59 lines (51 loc) · 1.59 KB
/
details.php
File metadata and controls
executable file
·59 lines (51 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php defined('BASEPATH') or exit('No direct script access allowed');
class Module_PyroToast extends Module {
public $version = '0.1';
public function info()
{
return array(
'name' => array(
'en' => 'PyroToast'
),
'description' => array(
'en' => 'A port of the Toast testing library to PyroCMS '
),
'frontend' => TRUE,
'backend' => TRUE,
'menu' => 'content',
);
}
public function install()
{
$this->db->delete('settings', array('module' => 'pyrotoast'));
$settings = array(
'slug' => 'test_table_prefix',
'title' => 'Table Prefix',
'description' => "What's the table prefix for your test data ",
'`default`' => 'pyrotoast_',
'`value' => 'pyrotoast_',
'type' => 'text',
'`options`'=> '',
'is_required' => 1,
'is_gui' => 1,
'module' => 'pyrotoast'
);
return $this->db->insert('settings', $settings);
}
public function uninstall()
{
return TRUE;
}
public function upgrade($old_version)
{
// Your Upgrade Logic
return TRUE;
}
public function help()
{
// Return a string containing help info
// You could include a file and return it here.
return "No documentation has been added for this module.<br />Contact the module developer for assistance.";
}
}
/* End of file details.php */