mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:25 +01:00
Pass definition to plugin
This commit is contained in:
parent
82de8a636d
commit
eeda69071f
@ -140,7 +140,7 @@ class importexport_export_ui {
|
|||||||
if(method_exists($plugin_object, 'get_selectors_html')) {
|
if(method_exists($plugin_object, 'get_selectors_html')) {
|
||||||
$content['plugin_options_html'] = $plugin_object->get_options_html();
|
$content['plugin_options_html'] = $plugin_object->get_options_html();
|
||||||
} else {
|
} else {
|
||||||
$options = $plugin_object->get_options_etpl();
|
$options = $plugin_object->get_options_etpl($definition);
|
||||||
if(is_array($options)) {
|
if(is_array($options)) {
|
||||||
$content['plugin_options_template'] = $options['name'];
|
$content['plugin_options_template'] = $options['name'];
|
||||||
$content += (array)$options['content'];
|
$content += (array)$options['content'];
|
||||||
@ -169,7 +169,7 @@ class importexport_export_ui {
|
|||||||
if(method_exists($plugin_object, 'get_selectors_html')) {
|
if(method_exists($plugin_object, 'get_selectors_html')) {
|
||||||
$content['plugin_selectors_html'] = $plugin_object->get_selectors_html();
|
$content['plugin_selectors_html'] = $plugin_object->get_selectors_html();
|
||||||
} else {
|
} else {
|
||||||
$options = $plugin_object->get_selectors_etpl();
|
$options = $plugin_object->get_selectors_etpl($definition);
|
||||||
if(is_array($options)) {
|
if(is_array($options)) {
|
||||||
$content['selection'] = $options['content'];
|
$content['selection'] = $options['content'];
|
||||||
$sel_options += (array)$options['sel_options'];
|
$sel_options += (array)$options['sel_options'];
|
||||||
|
Loading…
Reference in New Issue
Block a user