- Jul 14, 2008
-
-
Darrel O'Pry authored
-
- Jul 13, 2008
-
-
Darrel O'Pry authored
-
- Jul 11, 2008
-
-
Jakob Petsovits authored
-
- 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
-
- 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
-
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
-
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
let's rather use '#default_value' where I stored the file.
-
Jakob Petsovits authored
specify their own validators.
-
- 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.
-
Jakob Petsovits authored
Also (which took far more time), change the AHAH callback so that it gets its replacement element from CCK instead of constructing it directly. Not only does that merge stuff like '#required' into the element but it also gets rid of a theming bug. That's how I like it :)
-
Jakob Petsovits authored
the same objective isn't coded twice. As a downside, doing it this way will not squeeze every last inch of CPU cycles out of this loop. Whatever.
-
Jakob Petsovits authored
CCK checks for itself before calling it, but who knows how it gets abused in evil other ways, so let's be prepared for that situation.
-
- Jun 24, 2008
-
-
Jakob Petsovits authored
should display a file or not, in case they're not using the regular CCK formatters. Since I removed the access check from theme_filefield(), this function's premier use is probably to salve my conscience.
-
Jakob Petsovits authored
Right. So add a few more.
-
Jakob Petsovits authored
for whatever reason. Not that I like writing such text, but hey, these were the last two @todo items in filefield.module. Coolio.
-
Jakob Petsovits authored
The even better news is that I've been able to get completely rid of the annoying 'view filefield uploads' permission by replacing it with the more fine-grained field-level permissions from content_permissions which ships with CCK 6.x. The new code makes our hook_file_download() a bit more complex, but on the other hand only cares about files that are actually contained in at least one file field. Yay for correctness and flexibility!
-
Jakob Petsovits authored
* Use an error string similar to what Drupal core is using. * Passive JavaScript errors (in a red error box) instead of alert().
-
Jakob Petsovits authored
-
Jakob Petsovits authored
than this, only CSS gurus should be able to improve it even more. * On the coding side, file edit widgets are now real form elements. That means no buttons for such widgets, but instead they can come up with their own value callbacks and widget theme functions. Plus I now have them in their walled garden where they belong.
-
Jakob Petsovits authored
Includes a bit more modularization of the uploading/deletion code. Known bugs: * Uploads work in Firefox but not in Konqueror, that is a regression compared to the D5 version. An ahah.js bug? (Drupal isn't even invoked.) * The AHAH submit-replacement behaviour won't attach to the new form, it seems. I experienced the same thing with the CCK "add more" button, let's have a look what goes wrong there.
-
- Jun 23, 2008
-
-
Jakob Petsovits authored
* Re-add '#name' properties for the buttons, so that the right one is selected on submit. * Scrap the broken condition (using a wrong, previous variable name) so that the replaced file is added to the form state again on uploading.
-