function _cleantalk_library_missing_message_4install in Anti Spam by CleanTalk 7
Same name and namespace in other branches
- 7.2 cleantalk.install \_cleantalk_library_missing_message_4install()
Cleantalk inner function - missing CleanTalk library message for install.
File
- ./
cleantalk.install, line 148 - Install and uninstall functions, schema definition for the CleanTalk module.
Code
function _cleantalk_library_missing_message_4install($title, $path) {
$t = get_t();
return $t('"Antispam by CleanTalk" module is DISABLED due to missing or broken CleanTalk library.') . ' <br />' . $t('Please download <a target="_blank" href="@url">@title</a>,' . ' extract the archive and copy the contents to the following location:' . '<br /><code>@path</code>.', array(
'@url' => 'https://github.com/CleanTalk/php-antispam',
'@path' => $path,
'@title' => $title,
)) . ' <br />' . $t('Make sure 2 files <strong>cleantalk.class.php</strong> and' . ' <strong>JSON.php</strong> are located there.') . '<br />';
}