Projet

Général

Profil

Révision 6fd71452

Ajouté par Julien Enselme il y a environ 10 ans

Update CKEditor

Voir les différences:

drupal7/sites/all/modules/ckeditor/ckeditor.api.php
70 70
  );
71 71
}
72 72

  
73
?>
73
/**
74
 * Hook to alter CKEditor security filters.
75
 */
76
function hook_ckeditor_security_filter_alter(&$security_filters) {
77
  // Modify a $security_filter.
78
}
79

  
80
/**
81
 * Hook to extend/change the ckeditor settings.
82
 *
83
 * This hook is invoked from ckeditor_profile_settings_compile(). The settings
84
 * may be customized or enhanced; typically with options that cannot be
85
 * controlled though the administrative UI from the ckeditor module.
86
 *
87
 * @param $settings
88
 *   An associative array of settings.
89
 * @param $conf
90
 *   An associative array with access to raw profile settings that might be helpful to alter the real $settings.
91
 */
92
function hook_ckeditor_settings_alter(&$settings, $conf) {
93
  // Change the ckeditor config path.
94
  $settings['customConfig'] = drupal_get_path('module', 'ckeditor') . '/ckeditor.config.js';
95
}
96

  
97
/**
98
 * Hook that allows to alter the user default settings.
99
 *
100
 * @param $settings
101
 *   An associative array of settings.
102
 */
103
function hook_ckeditor_default_settings_alter(&$settings) {
104
  $settings['show_toggle'] = 'f';
105
}

Formats disponibles : Unified diff