You are here

function opigno_certificate_app_certificate_exists in Opigno Certificate App 7

1 string reference to 'opigno_certificate_app_certificate_exists'
opigno_certificate_app_menu_alter in ./opigno_certificate_app.module

File

./opigno_certificate_app.module, line 35

Code

function opigno_certificate_app_certificate_exists($node) {
  if (isset($node->certificate['node_settings']['manual']['manual'])) {
    if ($node->certificate['node_settings']['manual']['manual'] === "-1") {
      return false;
    }
    else {
      return certificate_can_access_certificate($node);
    }
  }
  else {
    return false;
  }
}