function hook_ckeditor_skin in CKEditor Skin 7
Register list of skins to CKEditor.
Each item may have the following properties
- title: The name of skin.
- path: The path to skin, no slash at the end.
Parameters
string $version: CKEditor Version.
Return value
array List of skins.
See also
1 function implements hook_ckeditor_skin()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- ckeditor_skin_ckeditor_skin in ./
ckeditor_skin.module - Implements hook_ckeditor_skin().
1 invocation of hook_ckeditor_skin()
- ckeditor_skin_get_skins in ./
ckeditor_skin.module - Get all ckeditor skins, including all the skins in ckeditor package.
File
- ./
ckeditor_skin.api.inc, line 24 - API documentation for CKEditor Skins.
Code
function hook_ckeditor_skin($version = NULL) {
$skins = array();
if (empty($version)) {
return $skins;
}
$skin_path = drupal_get_path('module', 'ckeditor_skin') . '/skins';
if (version_compare($version, '4.1') >= 0) {
$skins['moono'] = array(
'title' => 'Moono',
'path' => $skin_path . '/v4/moono',
);
$skins['moonocolor'] = array(
'title' => 'Moono Color',
'path' => $skin_path . '/v4/moonocolor',
);
$skins['moono-dark'] = array(
'title' => 'Moono Dark',
'path' => $skin_path . '/v4/moono-dark',
);
$skins['kama'] = array(
'title' => 'Kama',
'path' => $skin_path . '/v4/kama',
);
}
elseif (version_compare($version, '3.1') >= 0) {
$skins['grappelli'] = array(
'title' => 'Grappelli',
'path' => $skin_path . '/v3/grappelli',
);
}
return $skins;
}