Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
admin
plugin_settings.php
Go to the documentation of this file.
1
<?php
11
$plugin
=
$vars
[
'plugin'
];
12
$plugin_id
=
$plugin
->getID();
13
14
// required for plugin settings backward compatibility
15
$vars
[
'entity'
] =
$plugin
;
16
17
$settings
=
false
;
18
19
if
(
elgg_view_exists
(
"settings/$plugin_id/edit"
) ||
elgg_view_exists
(
"plugins/$plugin_id/settings"
)) {
20
$title
=
$plugin
->getManifest()->getName();
21
22
$params
= array(
'id'
=>
"$plugin_id-settings"
,
'class'
=>
'elgg-form-settings'
);
23
$body
=
elgg_view_form
(
"plugins/settings/save"
,
$params
,
$vars
);
24
25
echo
elgg_view_module
(
'info'
,
$title
,
$body
);
26
}
elgg_view_module
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition:
views.php:1217
elgg_view_exists
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
Definition:
views.php:318
$vars
$vars['entity']
Definition:
plugin_settings.php:15
$title
$title
Definition:
save.php:24
$params
$params
Definition:
login.php:72
$plugin
$plugin
Definition:
plugin_settings.php:11
echo
elgg echo
Translates a string.
Definition:
languages.js:43
$plugin_id
$plugin_id
Definition:
plugin_settings.php:12
$settings
$settings
Definition:
plugin_settings.php:17
elgg_view_form
elgg_view_form($action, $form_vars=array(), $body_vars=array())
Definition:
views.php:1313
$body
$body
Definition:
export_handler.php:20
Generated on Sat Dec 21 2024 00:00:50 for Elgg by
1.8.11