Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 693

Nodes, comments, taxonomy terms, and users, in the terminology used since Drupal 7, are generally called "entities."

1 vote
Accepted

How to add cck custom date field?

In Drupal 6 we had the Multigroup module, which was bundled as part of the CCK 3.x branch. As of comment #353 on the State of the multigroup module thread, you should be able to just swap your CCK 2.x …
amateur barista's user avatar
3 votes

How do you get the nid from an entity id?

In this example Classroom is a content type (entity) with a field called field_students. field_students is a node reference field, and it references nodes (entities) of content type Student. // Get all …
amateur barista's user avatar
5 votes

How to programmatically remove a field from a node?

To answer @berkes question: field_delete_field() does mark the field for deletion, causing it to get purged on the next cron run. However it does leave data on field_config_instance regarding the dro …
amateur barista's user avatar
2 votes
1 answer
709 views

Are CCK shared fields loaded on node_load()?

field_metatitle is a CCK field that is used amongst 5 different content types, meaning that it is a "shared field". When I do $node = node_load('123');, I see that $node->field_metatitle is not presen …
amateur barista's user avatar
3 votes
1 answer
3k views

What is an entity URI?

Why, if we are able to define entities and make them work without a custom URI? What is the benefit of the custom URI? … Some examples of things out there on the web that mention Entity URIs, but don't leave me the wiser: Do entities need to have URIs? …
amateur barista's user avatar
3 votes
2 answers
3k views

Implementing custom entity forms

I explain - the example creates two "entities": a "regular" entity, and a "bundle" entity. The example then implements ENTITY_TYPE_form() for the "bundle" kind of entity ONLY. …
amateur barista's user avatar
0 votes

What format are CCK dates stored in?

Answering my last question based on @tim.plunkett links: Would it mean that CCK date fields would not be able to store something happening in year 1939, for example? It would depend on what format y …
amateur barista's user avatar
3 votes

drupal commerce product types

Create a product of type "computer". Then create a list field in "computer" called "computer type", where you can specify "desktop" or "laptop". You can have another list field named "brand" on the …
amateur barista's user avatar
20 votes
2 answers
10k views

Best way to drop a field from a content type

What is the best way to remove a Drupal 7 field from a content type defined via the GUI? I want to use hook_update_N so the changes can be propagated to multiple servers upon running update.php. Howev …
amateur barista's user avatar
3 votes
2 answers
2k views

What format are CCK dates stored in?

In what format are CCK dates stored? If it stores dates in the database using a timestamp string instead of a native MySQL datetime format, what implications does that have in regards to storing dates …
amateur barista's user avatar
4 votes
1 answer
741 views

How to alter the Views field Format drop-down menu

I am exporting some XML feeds using Views. One of these fields needs to look like this: <image>http://example.com/path/to/myimage.jpg</image> I am storing my image in a CCK field. When selecting th …
amateur barista's user avatar