/
ProcessHello.info.php
82 lines (67 loc) · 2.28 KB
/
ProcessHello.info.php
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php namespace ProcessWire;
/**
* ProcessHello.info.php
*
* Return information about this module.
*
* If you prefer to keep everything in the main module file, you can move this
* to a static getModuleInfo() method in the ProcessHello.module.php file, which
* would return the same array as below.
*
* Note that if you change any of these properties for an already installed
* module, you will need to do a Modules > Refresh before you see them.
*
*/
$info = array(
// Your module's title
'title' => 'Hello: Process Module Example',
// A 1 sentence description of what your module does
'summary' => 'A starting point module skeleton from which to build your own Process module.',
// Module version number (integer)
'version' => 2,
// Name of person who created this module (change to your name)
'author' => 'Ryan Cramer',
// Icon to accompany this module (optional), uses font-awesome icon names, minus the "fa-" part
'icon' => 'thumbs-up',
// Indicate any requirements as CSV string or array containing [RequiredModuleName][Operator][Version]
'requires' => 'ProcessWire>=3.0.164',
// URL to more info: change to your full modules.processwire.com URL (if available), or something else if you prefer
'href' => 'https://processwire.com/modules/process-hello/',
// name of permission required of users to execute this Process (optional)
'permission' => 'helloworld',
// permissions that you want automatically installed/uninstalled with this module (name => description)
'permissions' => array(
'helloworld' => 'Run the HelloWorld module'
),
// page that you want created to execute this module
'page' => array(
'name' => 'helloworld',
'parent' => 'setup',
'title' => 'Hello World'
),
// optional extra navigation that appears in admin drop down menus
'nav' => array(
array(
'url' => '',
'label' => 'Hello',
'icon' => 'smile-o',
),
array(
'url' => 'something/',
'label' => 'Something',
'icon' => 'beer',
),
array(
'url' => 'something-else/',
'label' => 'Something Else',
'icon' => 'glass',
),
array(
'url' => 'form/',
'label' => 'Simple form',
'icon' => 'building',
),
)
// for more options that you may specify here, see the file: /wire/core/Process.php
// and the file: /wire/core/Module.php
);