function flag_node::get_valid_actions in Flag 5
Same name and namespace in other branches
- 6.2 flag.inc \flag_node::get_valid_actions()
- 6 flag.inc \flag_node::get_valid_actions()
File
- ./
flag.inc, line 922 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_node
- Implements a node flag.
Code
function get_valid_actions() {
$actions = module_invoke_all('action_info');
foreach ($actions as $callback => $action) {
if ($action['type'] != 'node' && !isset($action['hooks']['nodeapi'])) {
unset($actions[$callback]);
}
}
return $actions;
}