summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-15 02:51:16 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-15 02:51:16 +0000
commitad4f495e56d1b544b2f4278b41572cdd53fe300f (patch)
treee1a8959570efd57fccd57f5720b7873fc9a3660d
parent73c52c7140e0b867d02b658be396b91396c6713e (diff)
Rename events
album_created, photo_created -> item_created album_updated, photo_updated -> item_updated
-rw-r--r--core/controllers/albums.php2
-rw-r--r--core/controllers/photos.php2
-rw-r--r--core/helpers/album.php2
-rw-r--r--core/helpers/photo.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php
index ef1d2eb4..474e9ab2 100644
--- a/core/controllers/albums.php
+++ b/core/controllers/albums.php
@@ -152,7 +152,7 @@ class Albums_Controller extends Items_Controller {
$album->description = $form->edit_album->description->value;
$album->save();
- module::event("album_changed", $orig, $album);
+ module::event("item_changed", $orig, $album);
log::success("content", "Updated album", "<a href=\"albums/$album->id\">view</a>");
message::success(t("Saved album {{album_title}}", array("album_title" => $album->title)));
diff --git a/core/controllers/photos.php b/core/controllers/photos.php
index b177b205..19308f2d 100644
--- a/core/controllers/photos.php
+++ b/core/controllers/photos.php
@@ -78,7 +78,7 @@ class Photos_Controller extends Items_Controller {
$photo->description = $form->edit_photo->description->value;
$photo->save();
- module::event("photo_changed", $orig, $photo);
+ module::event("item_changed", $orig, $photo);
log::success("content", "Updated photo", "<a href=\"photos/$photo->id\">view</a>");
message::success(t("Saved photo {{photo_title}}", array("photo_title" => $photo->title)));
diff --git a/core/helpers/album.php b/core/helpers/album.php
index fb79015e..e1875b3a 100644
--- a/core/helpers/album.php
+++ b/core/helpers/album.php
@@ -58,7 +58,7 @@ class album_Core {
mkdir(dirname($album->thumb_path()));
mkdir(dirname($album->resize_path()));
- module::event("album_created", $album);
+ module::event("item_created", $album);
return $album;
}
diff --git a/core/helpers/photo.php b/core/helpers/photo.php
index 9178ad8c..74ef02e0 100644
--- a/core/helpers/photo.php
+++ b/core/helpers/photo.php
@@ -79,7 +79,7 @@ class photo_Core {
$photo->add_to_parent($parent);
copy($filename, $photo->file_path());
- module::event("photo_created", $photo);
+ module::event("item_created", $photo);
// Build our thumbnail/resizes
graphics::generate($photo);