-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onChangeState for Extension Manager not present. #13278
Comments
set Status on "Information Required" This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13278. |
If this PR get no Response, it will be closed at 23th July 2017. |
This issue is still relevant because nobody has implemented the requested feature. |
@mbabker how to manage this? |
Leave it open. It's a valid outstanding feature request. Either someone will implement it, or a leadership decision gets made at some point that says "sorry, we aren't interested in this" and we close it, or it just sits here collecting dust. |
i'm no Fan of closing Issues and sure it stays open. It's more about how to manage to get a Decision. |
Nobody from leadership has closed it as a "sorry, we aren't interested" item. So it's up for grabs if someone wants to write the code for this. |
PR for joomla#13278 Adds a trigger event so that you can capture when an extensin is disabled etc To test Apply this PR and then in plugins\extension\joomla\joomla.php add this code for testing public function onExtensionChangeState($context, $eid, $value) { die ('caught you'); } Now try to disable an extension in the manage screen and you should catch the event and the messaage is displayed
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/13278 |
closed as having Pull Request #21693 |
PR for #13278 Adds a trigger event so that you can capture when an extensin is disabled etc To test Apply this PR and then in plugins\extension\joomla\joomla.php add this code for testing public function onExtensionChangeState($context, $eid, $value) { die ('caught you'); } Now try to disable an extension in the manage screen and you should catch the event and the messaage is displayed
Steps to reproduce the issue
Expected result
The plugin function should be triggered.
Actual result
No result because the trigger does not exists for (un)publishing extensions.
System information (as much as possible)
PHP Version 7.0.9
Web Server Apache 2.4.23 (Win32)
Joomla! version 3.6.5
User Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Additional comments
Suggestion to add a trigger event to administrator/components/com_installer/models/manage.php called OnExtensionChangeStage. Add the following code at line 140:
$context = $this->option . '.' . $this->name;
JEventDispatcher::getInstance()->trigger('onExtensionChangeState', array($context, $eid, $value));
The event name onContentChangeState is not logical because this event must be started from within a System plugin (if I am right).
The text was updated successfully, but these errors were encountered: