how to add delete option in the river activtity?

i am using facebook theme , by default delete option wont appear in activity how can we set it in the wall itself ..

  • Here is the answer for the above question :

    if($object->owner_guid == elgg_get_logged_in_user_guid())
            {
        
                       $options = array(
                    'name' => 'delete',
                    'href' => "action/river/delete?id={$object->guid}",
                    'text' => elgg_view_icon('delete'),
                    'title' => elgg_echo('delete'),
                    'confirm' => elgg_echo('deleteconfirm'),
                    'is_action' => true,
                    'priority' => 200,
                    );
                    $items[] = ElggMenuItem::factory($options);
               }