You are here

function flag_nodes in Flag 7.3

Same name and namespace in other branches
  1. 5 flag.module \flag_nodes()
  2. 6.2 flag.module \flag_nodes()
  3. 6 flag.module \flag_nodes()
  4. 7.2 flag.module \flag_nodes()

Callback function for hook_node_operations().

1 string reference to 'flag_nodes'
flag_node_operations in ./flag.module
Implements hook_node_operations().

File

./flag.module, line 2525
The Flag module.

Code

function flag_nodes($nodes, $action, $flag_name) {
  $performed = FALSE;
  foreach ($nodes as $nid) {
    $performed |= flag($action, $flag_name, $nid);
  }
  if ($performed) {
    drupal_set_message(t('The update has been performed.'));
  }
}