i am using facebook theme , by default delete option wont appear in activity how can we set it in the wall itself ..
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Sathish Kumar@rubon
Sathish Kumar - 0 likes
You must log in to post replies.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);
}