Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This project is not covered by Drupal’s security advisory policy.
Module description
This module provides an extra API to Flag module, for custom conditions between flags, for example:
When the have_seen flag is been "flagged", the want_to_watch flag must be "unflagged"
AND
When the want_to_watch flag is been "flagged", the have_seen flag must be "unflagged"
And the hook for that is:
/**
* Implements hook_conditional_flags_conditions().
*/
function custom_conditional_flags_conditions() {
return array(
'have_seen' => array(
'flag' => array('want_to_watch' => 'unflag'),
),
'want_to_watch' => array(
'flag' => array('have_seen' => 'unflag'),
),
);
}
Requirements / Dependencies
Acknowledgements
TODO
- Write a Test
- Make a UI for site builders
Thanks
Sponsored by Taller.
Project information
- Module categories: Content Editing Experience, User Engagement
- 33 sites report using this module
- Created by sebas5384 on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
7.x-1.0-beta4
released 30 November 2012
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 3 Sep 2012 at 18:19 UTC