Questions tagged [drupal-fields]

Fields are custom data that can be attached to Drupal entities.

Fields are custom data that can be attached to Drupal entities.

Drupal 7 provides an API that takes care of storing, loading, editing, and rendering field data. Any entity type (node, user, etc.) can use the Field API to make itself "fieldable" and thus allow fields to be attached to it. Other modules can provide a user interface for managing custom fields via a web browser as well as a wide and flexible variety of data type, form element, and display format capabilities.
In Drupal 6, most of the field functionalities are provided by CCK.

Use for questions about the Drupal 7 field API, how to use it, and which hooks need to be implemented from modules defining new fields.

See also

83 questions
0
votes
1 answer

Author of a particular field - which user modified the field

Is it possible in Drupal to find out which user modified a particular field? Not just the whole node. After saving the content I want to display the author name next to that field. Not sure if this is possible or not.
Ravi Sagar
  • 23
  • 4
0
votes
2 answers

Drupal email field

How can I lock the default e-mail field (make it read only), so that users will not be able to change their e-mail addresses after registering. Thanks
0
votes
2 answers

Permission to see hidden fields

There is a node type with hidden fields. Anyone can find nodes of that content type from the search form, and see open information. To see all the fields, users must make a request to the node owner, who decides the users who can see, or not those…
0
votes
1 answer

Drupal 7 views_embed_view node.tpl.php fields

With Drupal 7 and Views 3, I'm trying to get the result of a call to views_embed_view with contextual filter arguments in hook_preprocess_node, for embedding into a node template. The view is using the Fields display setting, including "Content:…
0
votes
1 answer

attach image_field to entity in drupal 7

I use drupal 7, and Entity API to develope a module. I have an entity to record client information. I wish to use image_field to let client upload their logo. So I have this function: function silver_client_enable() { field_cache_clear(); …
0
votes
1 answer

Dependent Dropdown issues in Drupal 7

I am using two select boxes in my form: one for country and one for state. I want the states box to be displayed based on the selection of the country box. I also have two database tables: countries and states. The country's table structure is {…
AkiShankar
  • 332
  • 4
  • 14
0
votes
1 answer

Drupal 7 Does "New Node Creation" initiate/prepare the Fields for different Content Types?

In Drupal 7, i need to Programmatically create the Nodes. As usual, there are Different Fields set for Different Content Types. For very simple example: Content Type: "car" Fields: "Model", "Engine", "GearType" Content Type: "article" Fields:…
夏期劇場
  • 15,969
  • 40
  • 121
  • 208
0
votes
1 answer

How to add new fields to user profile in Drupal 7 programmatically

I want to develop a module that add fields to user profile in drupal 7, like phone number and CV ... and I don't know how to do that (using Database or using fields API) pls help me. Any clear tutorials will be appreciated.
aladein
  • 115
  • 2
  • 12
1 2 3 4 5
6