You are here

function ckeditor_permission in CKEditor - WYSIWYG HTML editor 7

Implementation of hook_permission().

People -> Permissions

File

./ckeditor.module, line 181
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function ckeditor_permission() {
  $arr = array();
  $arr['administer ckeditor'] = array(
    'title' => t('Administer CKEditor access'),
    'description' => t('Allow users to change CKEditor settings.'),
  );
  $arr['customize ckeditor'] = array(
    'title' => t('Customize CKEditor appearance'),
    'description' => t('Allow users to customize CKEditor appearance.'),
  );
  if (file_exists(ckfinder_path('local'))) {
    $arr['allow CKFinder file uploads'] = array(
      'title' => t('CKFinder access'),
      'description' => t('Allow users to use CKFinder.'),
    );
  }
  return $arr;
}