You are here

function extended_file_field_permission in Extended File Field 7

Implements hook_permission().

Related topics

File

./extended_file_field.module, line 1050
Extends the core File field widget and provides a new formatter.

Code

function extended_file_field_permission() {
  return array(
    'extended file field delete any file contents' => array(
      'title' => t('Delete contents of any file attachment'),
      'description' => t('Allows users to delete the content of any file even if the file widget is configured to hide the "Remove" button.'),
    ),
    'extended file field delete own file contents' => array(
      'title' => t('Delete contents of own file attachment'),
      'description' => t('Allows users to delete the content of a file they uploaded even if the file widget is configured to hide the "Remove" button.'),
    ),
  );
}