Skip to content

Commit

Permalink
Dev: Add event beforeSurveyAdminView
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Apr 27, 2016
1 parent d89960f commit 422b173
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/controllers/admin/surveyadmin.php
Expand Up @@ -354,8 +354,11 @@ public function togglequickaction()
*/
public function view($iSurveyID, $gid = null, $qid = null)
{
// We load the panel packages for quick actions
$beforeSurveyAdminView = new PluginEvent('beforeSurveyAdminView');
$beforeSurveyAdminView->set('surveyId', $iSurveyID);
App()->getPluginManager()->dispatchEvent($beforeSurveyAdminView);

// We load the panel packages for quick actions
$iSurveyID = sanitize_int($iSurveyID);
if (isset($gid))
$gid = sanitize_int($gid);
Expand Down

0 comments on commit 422b173

Please sign in to comment.