diff sites/all/modules/insert/includes/file.inc @ 0:ff03f76ab3fe

initial version
author danieleb <danielebarchiesi@me.com>
date Wed, 21 Aug 2013 18:51:11 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/insert/includes/file.inc	Wed Aug 21 18:51:11 2013 +0100
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * @file
+ * Insert support for File module.
+ */
+
+/**
+ * Implementation of hook_insert_widgets().
+ */
+function file_insert_widgets() {
+  return array(
+    'file_generic' => array(
+      'element_type' => 'managed_file',
+      'wrapper' => '.file-widget',
+      'fields' => array(
+        'description' => 'input[name$="[description]"]',
+      ),
+    ),
+  );
+}