Skip to content
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

Added events for Piwik update, enable/disable plugin and Plugin Settings update #6440

Merged
merged 1 commit into from Oct 14, 2014

Conversation

mnapoli
Copy link
Contributor

@mnapoli mnapoli commented Oct 14, 2014

This is needed for #6372

New events:

  • CoreUpdater.update.end

    Triggered after Piwik has been updated.

  • PluginManager.pluginActivated - Parameters: $pluginName

    Event triggered after a plugin has been activated.

  • PluginManager.pluginDeactivated - Parameters: $pluginName

    Event triggered after a plugin has been deactivated.

  • Settings.$settingsName.settingsUpdated

    Triggered after a plugin settings have been updated. - Parameters: Settings $settings

    Example:

    Piwik::addAction('Settings.MyPlugin.settingsUpdated', function (Settings $settings) {
        $value = $settings->someSetting->getValue();
        // Do something with the new setting value
    });

@mnapoli mnapoli added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Oct 14, 2014
@mnapoli mnapoli self-assigned this Oct 14, 2014
mattab pushed a commit that referenced this pull request Oct 14, 2014
Added events for Piwik update, enable/disable plugin and Plugin Settings update
@mattab mattab merged commit 997c224 into master Oct 14, 2014
@mattab
Copy link
Member

mattab commented Oct 14, 2014

Some useful new events 👍

@mnapoli mnapoli deleted the more-events branch October 14, 2014 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants