You are here

function _disqus_migrate_api_exists in Disqus 6

Helper function to check for the existance of the Disqus API

2 calls to _disqus_migrate_api_exists()
disqus_migrate_admin_import_settings_validate in include/disqus_migrate.import.inc
Validate callback for saving Disqus import settings
_disqus_migrate_import_now_validate in include/disqus_migrate.import.inc
Validate handler to ensure user entered proper strtotime syntax

File

./disqus_migrate.module, line 141

Code

function _disqus_migrate_api_exists() {
  if (file_exists('sites/all/libraries/disqusapi/disqusapi.php')) {
    return TRUE;
  }
  return FALSE;
}