The Action Links module allows site admins to create links which perform an action when clicked.
For example, an action link could:
- toggle a node's published status
- cycle through the options for a field value on an entity
- change the workflow status on an entity
- change a field value on an entity
- add a product to the user's shopping cart
- subscribe a user to a node
- A JavaScript link which doesn't cause a page reload and updates itself with AJAX, showing a popup confirmation message. These degrade gracefully to plain reload links if JavaScript is disabled.
- A plain link which reloads the page, and shows a standard Drupal confirmation message.
- A form button styled as a link, which makes a POST request to reload the page
- A form button styled as a link, which makes an AJAX POST request
- A plain link which leads to a confirmation form.