Skip to content

Instantly share code, notes, and snippets.

@hanamizuki
Created December 18, 2012 14:13
Show Gist options
  • Save hanamizuki/4328297 to your computer and use it in GitHub Desktop.
Save hanamizuki/4328297 to your computer and use it in GitHub Desktop.
A different approach is to use tokens. This module provides a count token for each flag, and you can use it in email messages, for example, and in every place that accepts tokens:
<?php
Hello, [node-author].
Your post has been bookmarked [flag-bookmarks-count] times.
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment