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

  1. Write a Test
  2. Make a UI for site builders

Thanks

Sponsored by Taller.

Project information

Releases