Use this tag for questions about the field API, how to use it, or which hooks are required to implement a field in a module; use "tag:fields" for questions about fields implemented in modules you are using.

learn more… | top users | synonyms

0
votes
1answer
10 views

How do you display fields created via the File Entity settings configuration?

I have a question about adding fields to the file type field. Someone suggested usingthe file_entity module, and I tried it out and it lets me modify it's configuration settings, adding a few fields, ...
1
vote
0answers
13 views

Port back to d6 $instance

I have this code that I am trying to get back to d6 $field_name = variable_get('blogger_importer_node_tag_field', ''); $instance = ...
0
votes
1answer
18 views

Module: Extend “Authoring information”-tab and adding new field to it

I'm looking for a way to attach a custom field of my module to "Authoring information"-tab. Thanks for any hint
0
votes
0answers
11 views

Modules/Methods for Faster Data Entry

I have an unlimited-cardinality text field on a node that users need to enter 50-100 values on. Right now, the user has to type in one value, click "add another item", and then click inside the text ...
1
vote
1answer
24 views

Saving custom field value leads to mysql error

I created a custom field as in field_example described, using text_format as type and it shows up a multi line editor without any problems. But I'm facing a mysql error when trying to save a node: ...
0
votes
0answers
35 views

Keep empty values

I have the following case: I have a field (Long text) with unlimited values. Now I have the following values: Value 1 - empty value - Value 3 By default, the second value would get removed. How can ...
1
vote
1answer
31 views

How do I prepopulate the value of a taxonomy term reference field on the node creation form?

I'm using an approach similar to the one taken in this question. The difference is that I have a taxonomy term reference field in the user profile that I want to use to prepopulate a custom content ...
0
votes
2answers
26 views

field_get_items / value when creating new content

I think I am about to lose my mind .. how in earths name do I get the value of a field in a widget during creation? I created a custom field widget, and during creation of new content I want to be ...
0
votes
1answer
16 views

field_widget_form get value

I am creating a custom field and I am looking to get the value of a textfield during node creation. In the callback I need to get the value of the textfield, how do I do this? function ...
0
votes
1answer
32 views

Check for field values to be unique when storing into the DB

I have a content type "Research assignment" which has several fields including the field "field_user" and "field_project". I want to remove any old research assignments having the same user and ...
0
votes
0answers
10 views

Single input area widget

In D7, is it possible to create a custom field widget in the way Roles UI (admin/people/permissions/roles) does it, i.e with just a single input area at the very bottom, instead of n input sets for ...
0
votes
0answers
22 views

field label class

How do I add a class to the label of every field of a specific content type. Module? Theme? Is this possible? I'm using the bootstrap theme, if that makes any difference I can see that this theme ...
0
votes
0answers
8 views

How to debug hook_field_formatter_settings_summary()

In my code I have add: function mymodule_field_formatter_settings_summary($field, $instance, $view_mode) { $display = $instance['display'][$view_mode]; $settings = $display['settings']; ...
0
votes
1answer
26 views

How to programmatically add / remove a value for an unlimited multivalue field?

I was looking at http://php.net/manual/en/function.array-push.php but it seems one cannot use it as multi value fields are associate arrays. Any built in functions perhaps? Here is an example array ...
0
votes
1answer
36 views

Toggle text field depending on checkbox value in drupal 6

I need to toggle a textbox depending upon the checkbox value. Basically i need to take email entries for updates. Here is the form elements I used. $form['chkupdates'] = array( '#type' ...

1 2 3 4 5 17
15 30 50 per page