You are here

function flag_lists_link_alter in Flag Lists 7

Same name and namespace in other branches
  1. 6 flag_lists.module \flag_lists_link_alter()
  2. 7.3 flag_lists.module \flag_lists_link_alter()

File

./flag_lists.module, line 839
The Flag Lists module.

Code

function flag_lists_link_alter(&$links, $node) {
  if (!variable_get('flag_lists_use_links', 1)) {
    foreach ($links as $name => $link) {
      if (stristr($name, 'flag-fl_')) {
        unset($links[$name]);
      }
    }
  }
}