Entities is the term that in Drupal 7 is used for nodes, comments, taxonomy terms, and users.

learn more… | top users | synonyms (1)

0
votes
0answers
8 views

Get list of all entities that have a reference (via organic groups) to another entity (different bundles)

I have a "Date" entity and an "Event" entity. Dates can be linked to Events via Entity Reference using the OG Reference widget. I am having trouble getting all of the dates for a specific Event. I ...
0
votes
0answers
10 views

Node with field.If field added throws error 'missing bundle property'

I've got a node with a field on it called 'franchise'. If I leave that field blank there is no error but if I fill it with something, I get the very opaque error: Error message ...
2
votes
2answers
33 views

Using Fieldgroups with Entity Registration Module

I'm using the Entity Registration module to create event signup forms. I've got my first event registration form up and running and now want to group some of the fields into fieldsets. I have the ...
0
votes
1answer
13 views

Additional fields for Ubercart uc_order_product

I need to add fields to the Ubercart entity uc_order_product. I was looking into the function field_create_instance, but don`t know exactly where to use it. I believe I should attach the field I want ...
0
votes
1answer
13 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, ...
0
votes
1answer
42 views

How can I join content in Drupal

I'm having a little bit of trouble with joining 2 different content types in a view. I'm am using Entities and View modules. What I have is about 50 satellite offices and each office has a varying ...
3
votes
1answer
66 views

How To Enter Data Into A Custom Drupal Entity?

I have a question regarding entering data into custom entities I have a usage case I believe is better for Drupal Entities than Content Types and Nodes. I have installed Entity Construction Kit and ...
0
votes
1answer
38 views

How to get taxonomy image and path by tid in Drupal 7?

I want to get categiries image and path in Catalog Block for Ubercart 3 (Drupal 7) which is taxonomies. I know only tid. For path i try this $tid = (int)$variables['catid']; // return tid $term = ...
0
votes
1answer
22 views

How to flag a product variation on a commerce website?

My products have multiple variations as enitities (size, color etc). I want to display a flag link on a product display page. When a visitor uses it, I want them to be able to flag the selected ...
0
votes
2answers
28 views

hook_filter_info langcode is always und

I am trying to filter text and the result replace depends on the language of the node. The filter process callback function accepts $langcode argument but it always pass as "und". If I could access ...
1
vote
1answer
40 views

Array Flip Error Message on All Node Pages

Hello i dont know where to begin. All of a sudden MY WEBSITE is displaying this error when i view a node- Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in ...
0
votes
0answers
42 views

Can I use taxonomy term id from URL as Contextual Filter to get entities of custom entity type (not node)?

As in question. I have a View with Profile2 entity. Entity has taxonomy term reference field. I'd to filter entities by term. I tried, but no luck Can I do it with Contextual Filter or I must use ...
0
votes
0answers
33 views

How to clone a entity with its attached fields?

I am trying to create a entity with few bundles. I have used EntityDefaultUIController as admin UI callback. This provides me with few default functions such as clone, import and export. The problem ...
4
votes
2answers
77 views

How can I print a field from a referenced entity in my theme?

I'm trying to print a field from an entity reference field - but I don't have a clue how to do it! A bit of background: I've got two content types - master and variation. Variation includes an ...
0
votes
1answer
27 views

How to change order of taxonomy terms related to specific node field?

As in question. I have multivalued taxonomy field. Is this possible to control terms weight, which are belongs to specific node field? As a term weight, I mean weight inside single node. It's just a ...
6
votes
2answers
56 views

Displaying fields from an entity reference of another entity's field

I have three content types: compositions, recordings and artists. Compositions have entity references to artists for the field composer. Recordings have entity references to compositions for the ...
0
votes
1answer
59 views

Auto-Fill from on content type to another

I have a content type called Point-of-Contacts, basic info for a person. (~600 nodes) I have another content type, like a form, that has a select list of all Points-of-Contacts. When a user selects ...
0
votes
1answer
33 views

Adding extra info to each Node -> Taxonomy Term relationship

We have a basic site with a pages that have a taxonomy term content type associated with a number of terms. What we would like to is to add more information to each of the node -> taxonomy ...
1
vote
1answer
28 views

How to change content type field values with the entity system — getting a “doesn't support writing” error

I've got a D7 content type with a few fields; nothing particularly special. I want to be able to programattically change the values of those fields from time to time, and so wrote a function like so: ...
3
votes
1answer
42 views

Red Herring Error : Class name must be valid object or string

After just having spent two days trying to get to the bottom of a particularly weird bug I thought I'd post up what my question would have been — if I had taken the time to write it — and ...
0
votes
0answers
23 views

List custom entity in Views

I would like to simply output all created entities from my custom entity type through a View. Does anyone have an article or module or code to point me in the right direction, my searches didn't bring ...
0
votes
0answers
25 views

Best way of pulling through custom entity data from an ID in a URL

This is a bit complicated, so bear with me please! There is a page on which the user is shown the results of his or her assessment, and in the sidebar, there are various views that provide links to ...
0
votes
1answer
60 views

Computed Field: Setting up entity title

Hello fellow Drupal people, I have written inside a Computed Field's Computed Code section the following code, which works except the commented out section which includes two options for setting up ...
1
vote
2answers
70 views

how to use entity_load() result?

I am quite new to Drupal so this question may be very simple or basic. I created a module and I've extracted list of a custom content type for each user by using EntityFieldQuery and then I used ...
0
votes
4answers
221 views

Extracting a specific data part of a Field Collection Item

I've been playing around with this for the better part of a few days now with no luck. Here is my Collection data: Collection name: field_video_collection Within the collection there is a field ...
2
votes
0answers
30 views

Programmatically insert field collection of Phone fields

I have a profile2 profile type. In profile type i have created the collection for storing the information of form fields. I have used the phone module to create the phone number fields. This ...
0
votes
0answers
24 views

Populate field based on another filed from different custom content type

creating a site with a specialty clinic calendar. I created a content type "Specialty Doctor Profile" which has a title field, photo field, specialty area field (which I am sorting by in a view on the ...
0
votes
1answer
42 views

Entity Field Query

I don't think I am yet grasping how entity field query works, all I want to do is get the ids of all the nodes connected to my node via an entity reference, how do I write that?
0
votes
0answers
29 views

For a speedy entity: properties or fields?

I'm creating a new entity type as part of porting an application to Drupal. The entity represents a 'data point' or value, which I would like to associate with taxonomies describing the type of data, ...
5
votes
1answer
79 views

How do you clear a field value with entity_metadata_wrapper()?

Suppose I have an entity with a field field_foo on it and I want to clear that field's value. What should I pass to $wrapper->set()? I have tried NULL and array() and both produce an error ...
2
votes
1answer
123 views

array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql()?

i have developed a custom module which will calculate the employee salary . I have created the hook_schema() like this This is mymodule.install file with two entities function payroll_schema() { ...
0
votes
1answer
32 views

How can I allow admins to choose anything from an Entity Reference field while restricting it for everyone else?

I'm doing a job listings site. Users with privileges to list jobs have an Entity Reference field connecting them to a Company node. Job nodes have a similar field. So when an employer creates a Job, ...
1
vote
0answers
65 views

Contextual filter based on translated term

I'm looking two days for the right answer but can't find it anywhere. Here is my issue: I'm using Drupal 7.21 with Entity Translation to build a multilangual site (English and Dutch). English is the ...
1
vote
0answers
50 views

how to write the hook_entity_info() for two tables in the hook_schema() while creating a custom module?

I am creating a custom module for calculating employee salary in an organization. I have created two tables in hook_schema in .install(extension) file . And in my .module(extension) file() i wrote the ...
0
votes
1answer
40 views

creating a custom entity which stores multiple bundles as per user input?

I want to create an custom entity(Lets say payroll entity) which has the following fields 1. Basic salary 2. Earnings 3. Deductions It is possible by Entities But now I would like to add some new ...
1
vote
1answer
37 views

Connecting multiple data entities to the user object

I need to create a simple order system in Drupal 7. This will be a site for a meat wholesaler so I don't need a webshop. Users are able to register and fill in a webform to order products. However ...
0
votes
0answers
37 views

Reference a field of a node in registration form

I have a content type called "Event" and it have various fields, one of them that i want to reference from my event registration form is the text area field "Tematics". Is there some module that i ...
0
votes
1answer
105 views

how to manipulate entity field values in drupal 7 in custom module

I am creating a Payroll entity in which I have to manipulate different field values based on another field value (see below). I have the following fields and I want to calculate the bottom four field ...
2
votes
1answer
92 views

Entity Reference to fields

I'm using the Entity Reference module to relate different unique, particular pieces of equipment (identified by unique serial numbers) to different orders. Equipment and orders are content types. On ...
7
votes
1answer
219 views

Is EntityFieldQuery really this inefficient?

I am an admitted newbie to the Entity API, but am trying to cure that. I'm working on a site that uses a number of content types with various fields attached to them; nothing fancy. So, when I want ...
0
votes
0answers
61 views

Drupal site crashes when clearing the cache after Entity API installation

I'm trying to install the module Entity API. But if I clear the cache after the installation, my Drupal site crashes (i.e. something is causing a signal segmentation fault). I can't figure out why, ...
1
vote
1answer
125 views

How to add relationship in view for custom entity

I have an entity that references node and user via nid and uid fields. I have created an entity around my schema and would like to use it in views. I can create a view based on a new entity that ...
3
votes
1answer
76 views

how to define entity preprocess function

My custom module defines a custom entity, which extends the EntityAPIController class. I managed to make it basically working, i.e. displaying fields etc via my custom tpl.php file. But I would like ...
0
votes
2answers
203 views

Select entity to display using drop down list

My problem is that I want to add a drop down list to a node that selects an entity from that node based on its name, and display it. I am wondering if there is a module that does that; if there isn't, ...
0
votes
1answer
82 views

using entity reference fetch different fields automatically

using entity reference, i am able to relate to nodes with one another. Thats great. The user while entering their blog has an option to relate it to nodes of my custom content type. This works great. ...
0
votes
1answer
58 views

Should I use Entity Views Attach module to solve my problem

I've check the question in this node: Is there a good tutorial for " Entity Views Attach module"? And I see that maybe what is answered there is a partial solution to the issue I'm facing. ...
1
vote
1answer
38 views

drupal 7 entity and simple test

What I can't workout is what steps I need to see if the entity is loaded using simple test. Any direction will be greatly appreciated thanks. /** * @file * Definition of creation of a entity. */ ...
1
vote
1answer
35 views

Using Entity API, if given an entity in a function scope, how do you get the entity type?

This is very similar to this question: How do I get entity_type and entity_id from any entity page? But I don't know what that asker means by "Entity Page," and in my case, using debug_backtrace ...
0
votes
1answer
47 views

Entity Reference: User field not displaying unless user is referenced

I have a field that references users: field_cc. When userA creates a node with this field populated with userB, userA cannot see the field when the node is displayed. If userA references himself, then ...
1
vote
1answer
135 views

How to use entity_metadata_wrapper in hook_boot

I am trying to create an entity with entity_metadata_wrapper from within hook_boot. I know everyone will say "use hook_init" but for performance reasons, I'm going w/ hook_boot :) . I have a couple ...

1 2 3 4 5 6