function gathercontent_authentication_test_page in GatherContent 7.3
Page callback for connection testing page.
Return value
string Content of the page.
1 string reference to 'gathercontent_authentication_test_page'
- gathercontent_menu in ./
gathercontent.module - Implements hook_menu().
File
- ./
gathercontent.authentication.inc, line 140
Code
function gathercontent_authentication_test_page() {
$acc_obj = new Account();
$success = $acc_obj
->testConnection();
if ($success === TRUE) {
return t('Connection successful');
}
else {
return t("Connection wasn't successful");
}
}