Timeline for Add cropping option to an image form
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 7, 2014 at 6:36 | comment | added | more770 | I've found the next definition of field and field instance: link. According to this both have widget option, but the code that kevin has show doesnt't work for me. It doesn't recognize "#widget" option. So, do I need to install any module?? | |
Oct 6, 2014 at 10:58 | comment | added | Kevin | Clive, yes it's a guess since field api is using widget on fields. On the link I gave, it states "widget (array)" on the instance. So probably creating a custom field is the best solution for OP's problem? | |
Oct 6, 2014 at 10:51 | comment | added | Clive♦ |
Yep I'm (very) familiar with the field API - can you point me to the documentation for this #widget property? It doesn't occur in the form API docs, the docs you linked to, or the entire Drupal 7 codebase. I'm pretty positive it doesn't exist, but I'm curious as to where you've got the idea that it does from? Have you read something that says this exists or are you just literally guessing?
|
|
Oct 6, 2014 at 10:48 | comment | added | Kevin | Field API uses widget, so it might be a good thing to look into it? api.drupal.org/api/drupal/modules!field!field.module/group/… | |
Oct 6, 2014 at 9:59 | comment | added | Clive♦ |
I've never come across a #widget property, it's not listed in the API so I guess this is something a contrib/custom module provides? Could you give some more information about where this property comes from and how it can be used?
|
|
Oct 6, 2014 at 9:50 | history | answered | Kevin | CC BY-SA 3.0 |