Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.138.123.149
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
baltic /
web /
modules /
ctools /
help /
[ HOME SHELL ]
Name
Size
Permission
Action
about.html
4.4
KB
-rw-r--r--
ajax.html
0
B
-rw-r--r--
collapsible-div.html
22
B
-rw-r--r--
context-access.html
687
B
-rw-r--r--
context-arguments.html
1.1
KB
-rw-r--r--
context-content.html
6.57
KB
-rw-r--r--
context-context.html
661
B
-rw-r--r--
context-relationships.html
559
B
-rw-r--r--
context.html
0
B
-rw-r--r--
css.html
22
B
-rw-r--r--
ctools.help.ini
1.47
KB
-rw-r--r--
dependent.html
22
B
-rw-r--r--
dropbutton.html
22
B
-rw-r--r--
dropdown.html
22
B
-rw-r--r--
export-ui.html
3.95
KB
-rw-r--r--
export.html
17.27
KB
-rw-r--r--
form.html
22
B
-rw-r--r--
modal.html
13.24
KB
-rw-r--r--
object-cache.html
4.22
KB
-rw-r--r--
plugins-api.html
2.24
KB
-rw-r--r--
plugins-creating.html
10.85
KB
-rw-r--r--
plugins-implementing.html
2.95
KB
-rw-r--r--
plugins.html
1.34
KB
-rw-r--r--
wizard.html
13.87
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : plugins-implementing.html
<p>There are two parts to implementing a plugin: telling the system where it is, and implementing one or more .inc files that contain the plugin data.</p> <h2>Telling the system where your plugins live</h2> <h3>How a module implements plugins</h3> <p>To implement any plugins at all, you must implement a single function for all plugins: <strong>hook_ctools_plugin_directory</strong>. Every time a module loads plugins, this hook will be called to see which modules implement those plugins and in what directory those plugins will live.</p> <pre> function hook_ctools_plugin_directory($module, $plugin) { if ($module == 'panels' && $plugin == 'content_types') { return 'plugins/content_types'; } } </pre> <p>The directory returned should be relative to your module. Another common usage is to simply return that you implement all plugins owned by a given module (or modules):</p> <pre> function hook_ctools_plugin_directory($module, $plugin) { if ($module == 'panels') { return 'plugins/' . $plugin; } } </pre> <p>Typically, it is recommended that all plugins be placed into the 'plugins' directory for clarity and maintainability. Inside the directory, any number of subdirectories can be used. For plugins that require extra files, such as templates, css, javascript or image files, this is highly recommended:</p> <pre> mymodule.module mymodule.info plugins/ content_types/ my_content_type.inc layouts/ my_layout.inc my_layout.css my_layout.tpl.php my_layout_image.png </pre> <h3>How a theme implements plugins</h3> <p>Themes can implement plugins if the plugin owner specified that it's possible in its hook_ctools_plugin_type() call. If so, it is generally exactly the same as modules, except for one important difference: themes don't get hook_ctools_plugin_directory(). Instead, themes add a line to their .info file:</p> <pre> plugins[module][type] = directory </pre> <h2>How to structure the .inc file</h2> <p>The top of the .inc file should contain an array that defines the plugin. This array is simply defined in the global namespace of the file and does not need a function. Note that previous versions of this plugin system required a specially named function. While this function will still work, its use is now discouraged, as it is annoying to name properly.</p> <p>This array should look something like this:</p> <pre> $plugin = array( 'key' => 'value', ); </pre> <p>Several values will be filled in for you automatically, but you can override them if necessary. They include 'name', 'path', 'file' and 'module'. Additionally, the plugin owner can provide other defaults as well.</p> <p>There are no required keys by the plugin system itself. The only requirements in the $plugin array will be defined by the plugin type.</p> <p>After this array, if your plugin needs functions, they can be declared. Different plugin types have different needs here, so exactly what else will be needed will change from type to type.</p>
Close