diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-21 22:42:39 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-21 22:42:39 +0000 |
commit | 6ce057f5162e18cd5190717145a13e7c29fe9da7 (patch) | |
tree | 0ce23ee020d366bd27892b0055fe7dc333520dc7 /start.php | |
parent | 8a76d53f35eabe1b33f012e91fd745c1e0653203 (diff) | |
download | elgg-6ce057f5162e18cd5190717145a13e7c29fe9da7.tar.gz elgg-6ce057f5162e18cd5190717145a13e7c29fe9da7.tar.bz2 |
added in skeleton for image and album classes
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -10,7 +10,8 @@ // include core libraries
include dirname(__FILE__) . "/lib/tidypics.php";
-
+ include dirname(__FILE__) . "/lib/image.php";
+ include dirname(__FILE__) . "/lib/album.php";
/**
* tidypics plugin initialisation functions.
@@ -44,6 +45,10 @@ register_entity_url_handler('tidypics_image_url', 'object', 'image');
register_entity_url_handler('tidypics_album_url', 'object', 'album');
+ // add the class files for image and album
+ add_subtype("object", "image", "TidypicsImage");
+ add_subtype("object", "album", "TidypicsAlbum");
+
// Register entity type
register_entity_type('object','image');
register_entity_type('object','album');
|