diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tag/helpers/tag.php | 13 | ||||
-rw-r--r-- | modules/tag/hooks/photo_created.php | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index 38595b1c..4b65016d 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -88,4 +88,17 @@ class tag_Core { $form->add_rules_from(ORM::factory("tag")); return $form; } + + /** + * Handle the creation of a new photo. + * @todo Get tags from the XMP and/or IPTC data in the image + * + * @param Item_Model $photo + */ + public static function on_photo_create() { + $photo = Event::$data; + Kohana::log("debug", "tag::on_photo_create($photo->name)"); + return; + } + } diff --git a/modules/tag/hooks/photo_created.php b/modules/tag/hooks/photo_created.php new file mode 100644 index 00000000..8f6cbab6 --- /dev/null +++ b/modules/tag/hooks/photo_created.php @@ -0,0 +1,2 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +Event::add("gallery.photo_created", array('tag', 'on_photo_create')); |