Permalink
Browse files

Trigger the album_add_form_completed event after creating a new album.

  • Loading branch information...
bharat committed Apr 17, 2010
1 parent 8d8aefc commit ca453413616d31d4c367526bdc9f480b23ba80db
Showing with 1 addition and 0 deletions.
  1. +1 −0 modules/gallery/controllers/albums.php
@@ -107,6 +107,7 @@ public function create($parent_id) {
if ($valid) {
$album->save();
+ module::event("album_add_form_completed", $album, $form);
log::success("content", "Created an album",
html::anchor("albums/$album->id", "view album"));
message::success(t("Created album %album_title",

0 comments on commit ca45341

Please sign in to comment.