Skip to content

Commit

Permalink
Add CMS Fields Extension Hook
Browse files Browse the repository at this point in the history
Add CMS Fields Extension Hook.
  • Loading branch information
jason-zz committed Feb 26, 2016
1 parent be1ada6 commit 2904e1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/dataobjects/SystemNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public function getCMSFields() {
}else{
$fields->insertBefore(TextareaField::create('NotificationText', _t('SystemNotification.TEXT', 'Text')), 'AvailableKeywords');
}

$this->extend('updateCMSFields', $fields);

return $fields;
}
Expand Down

0 comments on commit 2904e1e

Please sign in to comment.