Skip to content

Commit

Permalink
- 1.21.4 Added event cms:onBeforeSaveContentBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
damanic committed Jan 21, 2017
1 parent d1ac18b commit 2dd4e84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions models/cms_contentblock.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public static function clear_cache()
{
self::$page_blocks = array();
}

public function before_save($deferred_session_key = null)
{
Backend::$events->fireEvent('cms:onBeforeSaveContentBlock', $this);
}

public function after_save()
{
Expand Down
3 changes: 2 additions & 1 deletion updates/version.dat
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,5 @@
#1.21.0|@1.21.0 Google Analytics OAUTH2 dashboard statistic integration. Fixed issue with 1.20.1 where statistic integration toggle switch was also disabling some tracking codes. GA Tracking and Statistic Integration can be switched on/off independently.
#1.21.1 Minor improvement to GA authentication: cache file uses lemonstand temp directory.
#1.21.2 Upgraded GA tracking to Universal Analytics, analytics.js library
#1.21.3 Fixed syntax error on GA ecommerce:addTransaction
#1.21.3 Fixed syntax error on GA ecommerce:addTransaction
#1.21.4 Added event cms:onBeforeSaveContentBlock

0 comments on commit 2dd4e84

Please sign in to comment.