function flag_nodes in Flag 6
Same name and namespace in other branches
- 5 flag.module \flag_nodes()
- 6.2 flag.module \flag_nodes()
- 7.3 flag.module \flag_nodes()
- 7.2 flag.module \flag_nodes()
Callback function for hook_node_operations().
1 string reference to 'flag_nodes'
- flag_node_operations in ./
flag.module - Implementation of hook_node_operations().
File
- ./
flag.module, line 616
Code
function flag_nodes($nodes, $action, $flag_name) {
$performed = FALSE;
foreach ($nodes as $nid) {
$performed |= flag($action, $flag_name, $nid);
}
// Drupal 6 doesn't display a confirmation message itself, so it's our responsibility.
if ($performed) {
drupal_set_message(t('The update has been performed.'));
}
}