+function frio_display_item(App $a,&$arr) {
+
+ // Add subthread to the item menu
+ $subthread = array();
+ if ((local_user()) && local_user() == $arr['item']['uid'] && $arr['item']['parent'] == $arr['item']['id'] && (! $arr['item']['self'])) {
+ $subthread = array(
+ 'menu' => 'follow_thread',
+ 'title' => t('Follow Thread'),
+ 'action' => 'dosubthread(' . $arr['item']['id'] . '); return false;',
+ 'href' => '#'
+ );
+ }
+ $arr['output']['subthread'] = $subthread;