Now all modules are in core modules folder
This commit is contained in:
parent
5ba1cdfa0b
commit
05b6a91b0c
1907 changed files with 0 additions and 0 deletions
46
modules/ckeditor_link/ckeditor_link.install
Normal file
46
modules/ckeditor_link/ckeditor_link.install
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr>
|
||||
* http://www.absyx.fr
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implementation of hook_install().
|
||||
*/
|
||||
function ckeditor_link_install() {
|
||||
db_query("UPDATE {system} SET weight = %d WHERE name = '%s'", 1, 'ckeditor_link');
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_uninstall().
|
||||
*/
|
||||
function ckeditor_link_uninstall() {
|
||||
db_query("DELETE FROM {variable} WHERE name LIKE 'ckeditor_link_%%'");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_requirements().
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose strings to potx.
|
||||
*/
|
||||
function _ckeditor_link_potx() {
|
||||
t('Internal path');
|
||||
}
|
Reference in a new issue