Skip to content

Commit

Permalink
Add album_add_form event to album::get_add_form().
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Apr 11, 2010
1 parent 886337e commit 8d8aefc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/gallery/helpers/album.php
Expand Up @@ -45,9 +45,13 @@ static function get_add_form($parent) {
->error_messages("required", t("You must provide an internet address"))
->error_messages("length", t("Your internet address is too long"));
$group->hidden("type")->value("album");

module::event("album_add_form", $parent, $form);

$group->submit("")->value(t("Create"));
$form->script("")
->url(url::abs_file("modules/gallery/js/albums_form_add.js"));

return $form;
}

Expand Down

0 comments on commit 8d8aefc

Please sign in to comment.