function qcollection_type_access_load in Quiz 6.6
Load a qcollection node and validate it.
Parameters
$arg: The Node ID
Return value
A qcollection node object or FALSE if a load failed.
File
- includes/
qcollection/ qcollection.module, line 141 - The main file for qcollection.
Code
function qcollection_type_access_load($arg) {
// Simple verification/load of the node.
// ddebug_backtrace();
return ($node = node_load($arg)) && $node->type == 'qcollection' ? $node : FALSE;
}