You are here

function certificate_node_is_certifiable in Certificate 7.3

Same name and namespace in other branches
  1. 8.3 certificate.module \certificate_node_is_certifiable()
  2. 6.2 certificate.module \certificate_node_is_certifiable()
  3. 6 certificate.module \certificate_node_is_certifiable()
  4. 7.2 certificate.module \certificate_node_is_certifiable()
  5. 3.x certificate.module \certificate_node_is_certifiable()

Check if node is certifiable.

Return value

bool

3 calls to certificate_node_is_certifiable()
certificate_can_access_certificate in ./certificate.module
Check if a user can access a certificate for this node.
certificate_field_attach_form in ./certificate.module
Implements hook_field_attach_form().
certificate_node_update in ./certificate.module
Implementation of hook_node_update().

File

./certificate.module, line 448
Certificate module.

Code

function certificate_node_is_certifiable($node) {
  if (isset($node->type)) {
    return variable_get("certificate_certifiable_{$node->type}", 0);
  }
  return FALSE;
}