function _votingapi_process_actions in Voting API 5
1 call to _votingapi_process_actions()
File
- ./
votingapi_actions.module, line 87
Code
function _votingapi_process_actions($content_id, $content_type, $votes, $results) {
$data = cache_get('votingapi_action_sets');
$action_sets = unserialize($data->data);
if (!is_array($action_sets)) {
return;
}
$content = _votingapi_load_content($content_id, $content_type);
if ($content == NULL) {
return;
}
foreach ($action_sets as $action_set) {
if ($action_set['content_type'] == $content_type) {
$actions = array();
_votingapi_process_action_set($content, $votes, $results, $action_set, $actions);
foreach ($actions as $action) {
actions_do($action, $content);
}
}
}
}