public function GNodeWebTestBase::removeNodeFromGroup in Group 7
Remove a node from it's group.
Parameters
$node:
Throws
\Exception
21 calls to GNodeWebTestBase::removeNodeFromGroup()
- GNodeBypassAccessTests::testAnonymousBypassGroupAccess in modules/
gnode/ tests/ gnode.test - Test anonymous user's access to nodes in a group when granted bypass group access.
- GNodeBypassAccessTests::testMemberBypassGroupAccess in modules/
gnode/ tests/ gnode.test - Test member user's access to nodes in a group when granted bypass group access.
- GNodeBypassAccessTests::testOutsiderBypassGroupAccess in modules/
gnode/ tests/ gnode.test - Test outsider user's access to nodes in a group when granted bypass group access.
- GNodeDeleteAccessTests::testAnonymousDeleteAccess in modules/
gnode/ tests/ gnode.test - Test anonymous user's delete access to nodes in a group. This checks via several permissions: the delete any node, delete own node and administer group.
- GNodeDeleteAccessTests::testMemberDeleteAccess in modules/
gnode/ tests/ gnode.test - Test member user's delete access to nodes in a group. This checks via several permissions: the delete any node, delete own node and administer group.
File
- modules/
gnode/ tests/ gnode.test, line 202 - Tests for the gnode module.
Class
- GNodeWebTestBase
- Base class provides a number of helper functions.
Code
public function removeNodeFromGroup($node) {
$node->group = NULL;
node_save($node);
}