+
+/**
+ * @brief Manipulate the data of the item
+ *
+ * At the moment we use this function to add some own stuff to the item menu
+ *
+ * @param App $a App $a The app data
+ * @param array $arr Array with the item and the item actions<br>
+ * 'item' => Array with item data<br>
+ * 'output' => Array with item actions<br>
+ */
+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;
+}