Hey guys,
What i have right now is an plugin settings page that enables the admin to add fields dynamically to an object.
On the site users will be able to make 'item pages' these items got a title, a description and the fields the admin set in the plugin settings. These extra fields could range from 1 to a theoretically unlimited amount.
The title of each extra field is set in the backend, and I can get the value via elgg_get_plugin_setting, but this can only be used if i know the name of the setting. I know there is this function elgg_get_all_plugin_user_settings, but this is only for user settings. Is there a way i can get all the settings of a plugin?
Hope you guys can help me out.
Kind regards
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Per Jensen@gillie
Per Jensen - 0 likes
- denis d@denis07263548
denis d - 0 likes
You must log in to post replies.Try,
$plugin = elgg_get_plugin_from_id('plugin');
$settings = $plugin->getAllSettings();
Exactly what i need, thank you very much!