"Entities" is the term that in Drupal 7 is used for nodes, comments, taxonomy terms, and users. Third-party modules can then define new entity types.

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

Creating a page per bundle

I am trying to create multiple bundles for a given entity. However, when I'm doing this, all of my manage field and manage displays are on the same page, and it doesn't appear like any of the other ...
1
vote
1answer
19 views

Creating an entity with an unlimited number of bundles

So I want to create an entity that can have as many user-created fieldable bundles as possible. My first thought was to look at the Profile2 module, however I notice that there appear to be two ...
0
votes
0answers
25 views

Retrieving entity data in views with dynamic (per-row) relationship

I have custom entity 'entitystatus' that holds 'entity_id' reference and 'entity_type' field. Now I need to build a view that will display Entity statuses attached to different entity types (i.e. ...
1
vote
1answer
25 views

How i can use entity_metadata_wrapper for new database entry and update data in Drupal 7

How i can use entity_metadata_wrapper for database entry and update data in Drupal 7 I am using below code to save entry in database but not finding logic to update existing entry $node = new ...
0
votes
0answers
22 views

Making a list of content fields

I am making my first Drupal site and I have a problem. Little background: On the site users can register for events. These events are listed by different organisations. A user can choose which team ...
2
votes
2answers
16 views

Get tid as integer from tid array returned by EntityFieldQuery

I am using an EntityFieldQuery to return an array of taxonomy terms matching a provided custom field value. Using the example given in this question, I wrote a function that accepts the vocabulary, ...
-2
votes
1answer
27 views

How to display author name and post date in entity view page?

I am using Entity Construction Kit module. Thanks.
0
votes
0answers
12 views

Product thumbnail in custom block wont generate if on same product page

I have an issue with a custom module I have created to display contents of the cart in a popup. I appear to have it all working apart from the thumbnail image of a line item not generating if viewing ...
0
votes
2answers
20 views

Equivelant of node_type_load() for entity bundles

If I know the entity type and bundle, I want to load the bundle object with its settings. Drupal core has this for nodes, but is there any way to do it for entities? See node_type_load() in core: ...
-3
votes
1answer
28 views

“Entity Content” not available in views UI [closed]

I have installed Eva module (7.x-1.2). I can't see Entity Views attachemet section on my views screen. I want a replicate what is described in this video for creating galleries. Its 2:30 mins in ...
0
votes
0answers
18 views

How to show the parent node and their node children fields in one eva view @ parent node

I am trying to show some fields from parent and child nodes into an eva view that is attached to the parent view but I am confused and I am almost pulling my hairs out of my head because I guess it ...
0
votes
1answer
15 views

Creating muliple nodes from one page

I want to create multiple nodes from one page where I input one or two values into each entity, where each of the entities has a reference. Example: If I had three kids, I would measure their height ...
0
votes
0answers
8 views

ECK bundle paths

I would really like to integrate the bundles I have created with ECK with other modules which offer additional functionality for entities. The problem is that when defining menu items for entities ...
0
votes
1answer
16 views

how do I add check boxes in form created with the Registration module?

I am getting a radio button in my form as default, but I want a checkbox. I am using the Registration and the Entitiy Registration modules. How can I do that?
0
votes
0answers
21 views

Using a different local non-Drupal database to store entities?

So we have a simple mysql database that stores information about people, which is used by multiple sites on our environment. I'd like to use entities to interact with this database, but I can't figure ...
1
vote
1answer
20 views

What are valid entity_id and entity_type values for node content?

I'm trying to track down some performance issues on a Drupal 7 site where out of nowhere the site will stall rendering content or dealing with administrative duties like updating a piece of content. ...
0
votes
1answer
15 views

Flagging Referenced Entities

I have two node types (one is galleries, one is images). The node types are referenced to eachother via entity reference (which is providing a field on the image node which references a gallery). I ...
0
votes
0answers
16 views

Referencing ECK custom entity using entity reference from content

I am currenly working on quite a complicated project which I have decided to take a different approach to building. The site is complex in that there are 3 different themes. 2 seperate sections stand ...
1
vote
0answers
25 views

Save entity object only if modified

When calling the save() method on an entity, the timestamp value for last modified is always updated, regardless of whether the entity was actually modified. Is there a way to check if an entity ...
1
vote
1answer
26 views

Do I need a custom content type, entity, module or field?

I'm working on a product information manager, and I have a content type of product which needs to reference stock and price levels for each supplier from a different database - these are stored as ...
0
votes
0answers
29 views

Drupal architecture best practices

I have several custom entities, about 8. Each contains information about a given subset of data. Currently, this is being created by filling 8 different tables with data from an API and exposing it ...
0
votes
0answers
14 views

Boolean view filter based on custom property of entity

I've been trying to create a view filter for a custom entity (named: game). The entity is stored in the database and declared with hook_schema. I need to filter a view of the sum of game entities ...
0
votes
1answer
38 views

Basic “empty” entity type?

Is there a module that provides an empty entity, to which I can add my own fields. I guess it would include just an Entity-ID as a primary field, and work with other entity modules. For me, nodes ...
0
votes
2answers
45 views

D8: Best practice: Linking content types

I would appreciate suggestion for this common scenario in Drupal 8, which may be different to how I do it in Drupal 6. I don't want to do any programming. I have two content types: (1) Articles ...
1
vote
1answer
11 views

How to attach a database of data to a content / entity type

I have an sqlite database representing a collection of Foo which is immutable. I would like to be able to take this collection of Foo in the GUI of Drupal, and append a few fields onto each Foo ...
0
votes
0answers
12 views

How do enable panelizer support for a custom entity?

I've programmatically created an entity. I'd like to panelize it. What plugins do I need to write to accomplish this? Thanks!
2
votes
1answer
34 views

How to use CiviCRM Entity for searches with Facet API

I am trying to create a faceted search on CiviCRM contacts. I have created an index using the Search API module and the Facet API module, but currently the CiviCRM contacts can only be indexed on ...
2
votes
2answers
31 views

Safe change of field type from text to email or link

I have some field types that are in text and have data and I need them to be a link or email type (ie. email module.) I realize there are several approaches: change in D7 database. Use the migration ...
0
votes
1answer
43 views

Using entity form display modes

I have created a custom form display mode my_mode for nodes and wish to display node form using this mode instead of default one at a custom page. How can I do it? ...
2
votes
1answer
60 views

How do I Pass a Nid to a webform and create a token for a different field on that node?

Use Case: I have a content type called "Team" which contains an email address. I have a view that creates a link to create a webform to contact the Team member and prepopulate the email address in a ...
1
vote
1answer
48 views

Custom PHP vs Drupal Workflow for a Web Application not Websites

This question can be too ambiguous but i think many new drupal users face this difficulty like me. There are many blogs which says that Drupal is a CMF and we can use it for making Web Application ...
0
votes
0answers
11 views

Views: filter by entity property value against current timestamp

I have created custom entity type with module eck. I have created integer property (not field) of this entity which I use as timestamp. But now, I don't know how to use this timestamp in views. I ...
0
votes
1answer
38 views

How to let user create entity objects

I am in learning phase of Drupal and ofcourse the Entity API. I have created new entity named Projects. Goal is to make a project management system for software services providers. I am actually ...
1
vote
3answers
27 views

How do I create a content type that has another content type embedded inside of it?

I'm building a content type for a journal-type product. In each journal there are a number journal articles that vary from journal to journal, which have their own unique fields (like author, date, ...
0
votes
1answer
19 views

Define form for field_attach_form

I have an custome made entity function sbsl_order_entity_info() { $entitys = array(); $entitys['sbsl_delivery_information'] = array( 'label' => t('Delivery information'), ...
0
votes
1answer
22 views

How to validate deletion of custom entity?

I'm making decently complex system, where many entities are referencing each other, and I don't want to allow any broken references. That is why I would like to implement validation at entity ...
0
votes
0answers
15 views

commerce multi stock locaton data storage

Im working on a new module that will store stock levels in multiple inventory locations. What is the "best" way to store the data? Im slow to just attach and array of key/values to the product object ...
0
votes
0answers
118 views

PHP Fatal error: Call to undefined function entity_crud_get_info() in #########\docroot\sites … in xxx/modules/entity/entity.rules.inc on line 96

I am getting the above error whenever I install the module. The above errors keep occuring on every page. How can I debug it or solve it? I am clueless and working for a solution Any pointers would ...
4
votes
1answer
32 views

Why does node_add_body_field() lock down 'body' field instances to the 'node' entity type?

For a current project our taxonomy terms need a text field with a summary; naturally as there's already a body field available on nodes, I thought I'd just use that. Confusingly, 'body' doesn't ...
0
votes
1answer
14 views

How to add an image property to an entity?

I have a requirement to add a unique icon to each bundle of an entity. My entity code is very similar to the model module. I have 2 entities, one for holding the actual entity instances, another for ...
0
votes
2answers
39 views

Display a product with two columns

I want a two-column page layout to display my products which I create with 'drupal commerce'. The layout is basically the picture and similar articles on the left. Description on the right. Now, I ...
0
votes
1answer
25 views

Create entities when user account created

I am looking for a hook to fire off an Entity creation method (for an unrelated item that pertains to the user) when a user registers for the site. I'm divided between ...
0
votes
1answer
15 views

Entity reference, save only value

I am looking for the best approach to do the following: I have a content type Product and a content type Invoice, where i can reference products. I would like to be able to save the referenced ...
1
vote
0answers
39 views

how does entity_load and entity_save work with mongodb

Apologies if the question sounds too ambiguous, I am trying to migrate my nodes to MongoDB with the contributed MongoDB package's MongoDB Migrate module and am having trouble in migrating my node type ...
1
vote
1answer
19 views

Calling hook_entity_view from a theme

Is there any way to call hook_entity_view() from a theme? I tried adding the implementation to the template.php file, but the function is not called. I know I can do it via custom module, but as ...
0
votes
1answer
25 views

entity reference with multiple values?

I've added a new field to a content type, using the Entity Reference module. The new field is to allow entry of up to 4 related articles (curated content - chosen by the admin) per article. I've set ...
1
vote
2answers
28 views

Accessing Drupal 6 data using Drupal 7 entities

I have a project where we have a legacy system built in Drupal 6 that has been heavily customized, with much of the data stored in custom tables. We are currently planning a D6 to D7 upgrade, but we ...
1
vote
0answers
13 views

How to print the number of nodes of a certain type referencing to content

Using Drupal 7 and the latest Views and Entity Reference modules. I have 3 content types: - Destination - Museum - Restaurant Museum and Restaurant both reference Destination via field_destination ...
0
votes
1answer
33 views

How do I get a freshly updated value (i.e. not the cached value) using entity_metadata_wrapper?

In my code I am inserting a new value into the database directly using db_insert (i.e. inserting an entirely new row). The type of field, however, already exists in Drupal which is called ...
0
votes
0answers
20 views

EntityQuery: multiple fieldConditon with OR operator [duplicate]

It seems kinda trivial but I can find out an example on the Internet to do that kind of query: $entityQuery = new EntityFieldQuery(); $query = $entityQuery->entityCondition('entity_type', 'node'); ...