hypejunction/actions_delete

Generic delete action

Installs: 34

Dependents: 1

Suggesters: 1

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Language:JavaScript

Type:elgg-plugin

1.1.1 2015-12-27 12:21 UTC

README

Elgg 1.11 Elgg 1.12 Elgg 2.x

Generic delete action controller

Usage

echo elgg_view('output/url', array(
	'text' => elgg_view_icon('delete'),
	'href' => '/action/entity/delete?guid=123",
	'is_action' => true,
));

You can alternatively add a forward URL:

$action_url = elgg_http_add_url_query_elements('/action/entity/delete', array(
	'guid' => 456,
	'forward_url' => '/path/to/forward/to',
));