engine/lib/deprecated-1.8.php 1 location
|
@@ 1707-1714 (lines=8) @@
|
| 1704 |
|
* |
| 1705 |
|
* @return mixed |
| 1706 |
|
*/ |
| 1707 |
|
function find_plugin_settings($plugin_id = null) { |
| 1708 |
|
elgg_deprecated_notice('find_plugin_setting() is deprecated by elgg_get_calling_plugin_entity() or elgg_get_plugin_from_id()', 1.8); |
| 1709 |
|
if ($plugin_id) { |
| 1710 |
|
return elgg_get_plugin_from_id($plugin_id); |
| 1711 |
|
} else { |
| 1712 |
|
return elgg_get_calling_plugin_entity(); |
| 1713 |
|
} |
| 1714 |
|
} |
| 1715 |
|
|
| 1716 |
|
/** |
| 1717 |
|
* Return an array of installed plugins. |
engine/lib/deprecated-1.9.php 1 location
|
@@ 3820-3829 (lines=10) @@
|
| 3817 |
|
* @access private |
| 3818 |
|
* @deprecated 1.9 |
| 3819 |
|
*/ |
| 3820 |
|
function elgg_get_calling_plugin_entity() { |
| 3821 |
|
elgg_deprecated_notice("elgg_get_calling_plugin_entity() is deprecated.", 1.9); |
| 3822 |
|
$plugin_id = elgg_get_calling_plugin_id(); |
| 3823 |
|
|
| 3824 |
|
if ($plugin_id) { |
| 3825 |
|
return elgg_get_plugin_from_id($plugin_id); |
| 3826 |
|
} |
| 3827 |
|
|
| 3828 |
|
return false; |
| 3829 |
|
} |
| 3830 |
|
|
| 3831 |
|
return function(\Elgg\EventsService $events, \Elgg\HooksRegistrationService $hooks) { |
| 3832 |
|
// Register a startup event |