Ejemplo n.º 1
0
 function delete_admin_response($responseID)
 {
     $response = $this->getAdmin_response(array($responseID));
     $row = $this->getItem(array($response->item_id));
     $db = JFactory::getDBO();
     $query = "DELETE FROM #__jav_admin_responses WHERE id={$responseID}";
     $db->setQuery($query);
     if ($db->query()) {
         /* Add JomSocial:: activity Stream*/
         if ($response->user_id) {
             $title = sprintf(JText::_('JOMSOCIAL_ACTIVITI_STREAM_TITLE_REMOVE_REPLY'), $row->id, $row->voice_types_id, $row->forums_id, $row->title);
             JAVoiceHelpers::JomSocial_addActivityStream($response->user_id, $title, $row->id, 'removereply');
         }
         /* End*/
     }
 }