You are here

function imageeditor_inline_permission in Image Editor 7

Implements hook_permission().

File

imageeditor_inline/imageeditor_inline.module, line 10
Allows online editing of inline images using different image editing services.

Code

function imageeditor_inline_permission() {
  return array(
    'use imageeditor_inline' => array(
      'title' => t('Use Image Editor Inline'),
      'description' => t('Allows to use different image editors to create/edit inline images.'),
    ),
    'edit all images' => array(
      'title' => t('Edit any image on the page'),
      'description' => t('Access check feature: Allows to edit any image on the page including images from external sites.'),
    ),
    'edit own images' => array(
      'title' => t('Edit only own images'),
      'description' => t('Access check feature: Allows to edit only images from this site that are managed files, user should be the owner of the image file.'),
    ),
    'administer imageeditor_inline' => array(
      'title' => t('Administer Image Editor Inline'),
      'description' => t('Configure Image Editor Inline settings.'),
    ),
  );
}