- Feb 25, 2011
-
-
The Great Git Migration authored
-
The Great Git Migration authored
-
- Nov 24, 2009
-
-
János Fehér authored
-
- Jul 11, 2008
-
-
Jakob Petsovits authored
-
Jakob Petsovits authored
-
Jakob Petsovits authored
-
Jakob Petsovits authored
But not only that: The larger change in this commit is that all restrictions have been split out into a validator/restriction hook, so external restrictions can now also provide their requirement messages for the file upload element. Getting rid of nearly all filefield specific upload requirement exceptions.
-
- Jul 07, 2008
-
-
Darrel O'Pry authored
-
Darrel O'Pry authored
add data column to file fields for widgets to store serialized data per item. (display settings, transform settings, etc).
-
Darrel O'Pry authored
add field_file_references($file, $field) to load references by field. rename $item['filefield_delete'] to more descriptive $item['field_name'].
-
Darrel O'Pry authored
-
- Jul 03, 2008
-
-
Jakob Petsovits authored
Extensible via hook_filefield_filesize_restrictions(), used for displaying the upload form as well as for validating the actual uploads. And of course, this comes with the new per-file and per-node file size restriction "examples".
-
- Jun 30, 2008
-
-
Jakob Petsovits authored
-
Jakob Petsovits authored
-
- Jun 29, 2008
-
-
Jakob Petsovits authored
Note that the 5.x revision bug (#263162) does *not* appear anymore. Whoo!
-
Jakob Petsovits authored
-
Jakob Petsovits authored
(which happened on my local harddisk, so you didn't notice the revert at all)
-
Jakob Petsovits authored
-
Jakob Petsovits authored
-
Jakob Petsovits authored
filefield.formatter.inc and filefield.theme.inc work completely with declarational 'file' properties in the various hooks, whereas filefield.widget.inc still needs to be included manually.
-
Jakob Petsovits authored
stumbled over a few instances where the former is suboptimal. Also, pass possible file formatter settings to the theme function.
-
Jakob Petsovits authored
we don't need that as it's given in the function name anyways.
-
Jakob Petsovits authored
multiple file widget specific ones. In tandem with that, add file formatter settings to the field settings. Let's see if it works. Also, make hook_file_widget_info() more like hook_file_formatter_info() so that the array key doesn't specify the form element but is merely an arbitrary key, with the need to be unique only inside each module.
-
Jakob Petsovits authored
and have a checkbox to enable/disable them. The latter comes with additional functionality in terms of a validator that only accepts files when any enabled widget handles it. a.k.a. easy mimetype based upload restrictions. Makes it a breeze to have image-only filefields without specifying the allowed extensions.
-
- Jun 28, 2008
-
-
Jakob Petsovits authored
which is the only place where it's actually used. It had kind of an orphan status further down, which I didn't like.
-
Jakob Petsovits authored
also hides behind the moving table header. Yeah, simpler is always better.
-
Jakob Petsovits authored
-
Jakob Petsovits authored
-
- Jun 27, 2008
-
-
Jakob Petsovits authored
Also, for consistency, files are converted to objects (and back, in case) every time they are passed to other modules. Plus the usual minor cleanups and documentation fixes.
-
Jakob Petsovits authored
-
Jakob Petsovits authored
(load, save_upload, save, delete).
-
Jakob Petsovits authored
-
Jakob Petsovits authored
let's rather use '#default_value' where I stored the file.
-
Jakob Petsovits authored
-
Jakob Petsovits authored
specify their own validators.
-
Jakob Petsovits authored
'insert' and 'update' hooks for hook_file(). Also make sure that we can pass by reference in any case (so that modules can insert properties on $op = 'load'), and adapt some style bits to core's style conventions.
-
- Jun 26, 2008
-
-
Jakob Petsovits authored
-
Jakob Petsovits authored
which the widgets are added to. Therefore, the original unbuilt form should be passed, not the built one that is going to be scrapped.
-
Jakob Petsovits authored
-
- Jun 25, 2008
-
-
Jakob Petsovits authored
Thanks to yched for a hint into the right direction (form_clear_id()) and fago for bringing to my attention that script tags can also be inserted in the HTML body and are executed instantly. Take that, JavaScript! Hah.
-