function _anonymous_publishing_cl_relevantp in Anonymous Publishing 7
Helper function to check whether we need to process it.
Is this content something Amonymous Publishing should handle?
Return value
bool TRUE if content should be handled, else FALSE.
2 calls to _anonymous_publishing_cl_relevantp()
- anonymous_publishing_cl_node_validate in modules/
cl/ anonymous_publishing_cl.module - Implements hook_node_validate().
- _anonymous_publishing_cl_content_validate in modules/
cl/ anonymous_publishing_cl.module - Common validation of submission form for nodes and comments.
File
- modules/
cl/ anonymous_publishing_cl.module, line 561
Code
function _anonymous_publishing_cl_relevantp($content, $nodep) {
if (user_is_logged_in()) {
return FALSE;
}
if ($nodep) {
$isrelevantp = isset($content->anonymous_publishing['email']);
}
else {
$isrelevantp = isset($content['anonymous_publishing']['email']);
}
return $isrelevantp;
}