function simple_access_action_profile_disable in Simple Access 5.2
Action to disable access profile
File
- inc/
workflow_ng.inc, line 326 - Add workflow ng functionality to simple access
Code
function simple_access_action_profile_disable($conf, $data) {
$node = $data['data']['node'];
foreach (array_filter($conf['sa_profiles']) as $pid) {
if (in_array($pid, $node->simple_access_profiles)) {
unset($node->simple_access_profiles[array_search($pid, $node->simple_access_profiles)]);
}
}
return array(
'node' => $node,
);
}