6 * Description: Add "View Source" link to item context
8 * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
12 function viewsrc_install() {
13 register_hook('item_photo_menu', 'addon/viewsrc/viewsrc.php', 'viewsrc_item_photo_menu');
17 function viewsrc_uninstall() {
18 unregister_hook('item_photo_menu', 'addon/viewsrc/viewsrc.php', 'viewsrc_item_photo_menu');
22 function viewsrc_item_photo_menu(&$a,&$b) {
25 $b['menu'] = array_merge( array( t('View Source') => $a->get_baseurl() . '/viewsrc/'. $b['item']['id']), $b['menu']);