file_entity.info | 1 + file_entity.variable.inc | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/file_entity.info b/file_entity.info index ce95294..3c021bc 100644 --- a/file_entity.info +++ b/file_entity.info @@ -15,6 +15,7 @@ files[] = views/views_handler_field_file_link_delete.inc files[] = views/views_handler_field_file_link_download.inc files[] = views/views_plugin_row_file_view.inc files[] = tests/file_entity.test +files[] = file_entity.variable.inc configure = admin/structure/file-types ; We have to add a fake version so Git checkouts do not fail Media dependencies diff --git a/file_entity.variable.inc b/file_entity.variable.inc new file mode 100644 index 0000000..9e3df14 --- /dev/null +++ b/file_entity.variable.inc @@ -0,0 +1,31 @@ + t('Allowed file extensions', array(), $options), + 'type' => 'string', + 'default' => 'jpg jpeg gif png txt doc docx xls xlsx pdf ppt pptx pps ppsx odt ods odp', + 'description' => t('Allowed file extensions.', array(), $options), + 'token' => TRUE, + 'group' => 'file_entity', + 'localize' => FALSE, + ); + return $variables; +} + +/** + * Implements hook_variable_group_info(). + */ +function file_entity_variable_group_info() { + $groups['file_entity'] = array( + 'title' => t('File entity'), + 'description' => t('File entity'), + 'access' => 'administer site configuration', +// 'path' => 'admin/config/?', + ); + return $groups; +} +