function ckeditor_link_requirements in CKEditor Link 6.2
Same name and namespace in other branches
- 7.2 ckeditor_link.install \ckeditor_link_requirements()
Implementation of hook_requirements().
File
- ./
ckeditor_link.install, line 26 - Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr
Code
function ckeditor_link_requirements($phase) {
$requirements = array();
if ($phase == 'runtime' && !variable_get('clean_url', 0)) {
$requirements['ckeditor_link_clean_url'] = array(
'title' => t('CKEditor Link'),
'value' => t('Clean URLs are disabled.'),
'description' => t('<em>CKEditor Link</em> requires <a href="@url">Clean URLs</a> to be enabled in order to function properly.', array(
'@url' => url('admin/settings/clean-urls'),
)),
'severity' => REQUIREMENT_ERROR,
);
}
return $requirements;
}