You are here

function anonymous_publishing_cl_content_type_allowed in Anonymous Publishing 7

Check if the content type can be published anonymously.

Parameters

string $type: The content type to check.

Return value

bool TRUE if the content type can be published anonymously, FALSE otherwise.

2 calls to anonymous_publishing_cl_content_type_allowed()
anonymous_publishing_cl_node_presave in modules/cl/anonymous_publishing_cl.module
Implements hook_node_presave().
_anonymous_publishing_cl_alter_comment_or_node_form in modules/cl/anonymous_publishing_cl.module
Helper function to make form alterations to input form.

File

modules/cl/anonymous_publishing_cl.module, line 20

Code

function anonymous_publishing_cl_content_type_allowed($type) {
  $types = variable_get('anonymous_publishing_cl_types', array());
  return !empty($types[$type]);
}