function flag_nodes in Flag 6.2
Same name and namespace in other branches
- 5 flag.module \flag_nodes()
- 6 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 968 - 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.'));
}
}