"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
9 views

Front End Form For Users to Add Content

I'm using ECK to create a new entity type with about 4 bundles (with fields). I want users to be able to get to a page where they can now add content based on these new bundles: Entity Type: ...
0
votes
0answers
10 views

Can entities flag entities just like users do?

This is more conceptual than request for instructions: is there a way for an entity to flag entities, not as a global flag but flagged for just that one entity? Users of course can do this sort of ...
0
votes
0answers
19 views

Unable to edit new custom entity column values added to existing entity schema

I've added a new varchar column via a module update to an entity. The new entity property's default value displays for existing records on forms but changes are not saved. I say "forms" because there ...
0
votes
1answer
13 views

Is there a 'text or user reference' module?

Currently, I'm planning on using a text field for full names (added fields field_profile_full_name and field_profile_partner) on user entities, so that one user can link to another. However, I might ...
0
votes
0answers
9 views

Display an entity whose creation date matches another entity's with EVA?

I am using Heartbeat module to log activities using Rules, however Heartbeat entities/activities have no way (as far as I know) of checking whether they have been viewed or not. To solve this issue ...
-2
votes
2answers
27 views

Cache flushing doesn't help after manual deletion of entity references

I have a little function that deletes specific entity references directly from database. Because of fact that it bypass the whole entity_load / entity_save system it flushes cache of all entities it ...
0
votes
2answers
15 views

Add values to an existing custom entity bundle

I've created a custom entity with bundle and added 3 fields to the bundle(namely recipient, sender, flag). How can I add values to it programmatically. Any help would be appreciated. Thanks
1
vote
0answers
13 views

How to use a field as an entity's property

My module provides its own entity. I need my entity to have a link field with multiple values. The module link is suitable for this. At install hook, I create a field and a field instance of link ...
3
votes
2answers
61 views

Is Migrate module supposed to be used for imports too?

I am in need of an entity import functionality so I started to write my own. But then I started to think if I'm not reinventing the wheel and it occurred to me that maybe Migrate module will be used ...
1
vote
2answers
33 views

How to use entity form in pop-up window?

I have created a view, and there is one column named "forward to delete". I want to open an entity form in a pop-up after clicking on this link and get the node id of the clicked node so that I can ...
0
votes
0answers
16 views

how to export nodes and their referencing entities

I have a site which has some content types which have custom entities which refer to them. The exact example we are using is https://drupal.org/project/registration. We have event nodes which have ...
0
votes
1answer
18 views

entity export not serializing node

I am trying to use entity export to move existing entitys from a live to dev site. I tried the code below and it returned NULL int(1) However, when I did a dump of the $node object, it did dump the ...
0
votes
1answer
26 views

Which is the best way to create an entity? [closed]

I would like to use entity concept in my next project.So , is it good to use Entity Construction kit for creating entities ? How about Model Entities ? Which is better ?
0
votes
0answers
18 views

Entity forms : Can't assign the new field to parent 'group'

I working on web based diary, In the diary there are 21 days where every day is a Parent 'Group' with field type Vertical tab. Every day has 16 fields which are same for every day. I am able to ...
2
votes
2answers
49 views

Proper way to do entity query?

I am wondering if EntityFieldQuery is the proper way to do this SELECT * FROM field_data_field_products JOIN node ON entity_id = nid I'm wondering if there is a better way then my current db_query ...
0
votes
1answer
14 views

Find out what entity type an entity is?

How can I find out what entity type an entity is, when all I know is the entity ID? Or is there a way I could list all the entity types on my website (or even via database)?
0
votes
0answers
16 views

Views get node which created entity?

I am using commerce, which has products as entities. I have each product as a main node (which has title, URL, body, and other basic stuff) then I have a field which references products (price, SKU, ...
1
vote
1answer
44 views

define my own entity.tpl for my custom entity?

How to define my own entity.tpl for my custom entity? I am using entity API to declare my entity and its controller and class. I don't want to use entity.tpl of entityAPI but my own tpl.
2
votes
2answers
30 views

How to check if entity's property has a value

How can I check if entity's property has a value? I don't think this is the "drupal way" to check it like this $page_optimization->title->value() !== '' Is there any method, something like ...
2
votes
2answers
22 views

How can I entity edit path?

I made a module, and defined my custom entity there. I set admin ui interface 'admin ui' => array( 'path' => 'admin/structure/optimizations', ), Then is some code, I have my entity object. ...
1
vote
1answer
45 views

Is it proper to perform a db_update on an entity table?

I have a custom entity. During a save operation, under certain circumstances, I need to change the value of a specific field (not field API) of some other entities (of the same type). If I perform a ...
0
votes
1answer
26 views

problems with entity translation insert hook

I'm using the entity_translation_insert() hook to set the value of a field when a node is translated. I can successfully edit the $entity from within the implementation, but how should I save the ...
1
vote
1answer
35 views

Custom Entity with a uid property [closed]

We seem to be experiencing a very unexpected problem. We have created a custom entity called feature and it has a uid property. The schema is as follows: $schema['feature'] = array( 'fields' => ...
2
votes
1answer
71 views

Is there a Drupal module to add a Creative Commons license to entities?

I am looking for a module (beyond the Media Gallery module) that allows content creators to licence the content they create by means of the Drupal WCMS under one of the Creative Commons licenses. Is ...
0
votes
0answers
16 views

How to efficiently divide entities into groups based on field values

Problem I'm trying to create job alerts. So every user will select certain filter criteria on their account, which will then be used to perform a search api query returning the relevant new jobs. To ...
1
vote
1answer
35 views

How to properly call entity form?

I have created a wrapper in form of a "page" controller for my entity's form because I needed to do some tasks before it was rendered. I ended up with this: <?php class MyEntityController ...
3
votes
0answers
72 views

Are there any alternatives to privatemsg module? [closed]

Made with entity and views support. (Drupal 7)
1
vote
2answers
32 views

Use views to prepopulate fields

I have a site that generates letters to be sent to schools. The visitor arrives at the front page where they are presented with a map (leaflet map) with all the local schools marked on it. They then ...
4
votes
2answers
124 views

How to perform entity validation on code level?

I have an entity that has a field attached to it and the values that user types into the field has to be globally(website) unique(compared to other entities). I have added validation to the entity ...
0
votes
1answer
9 views

entity_export - where can it be used?

I want to make use of the entity_export function for data migration. I see on the doc page http://drupalcontrib.org/api/drupal/contributions!entity!entity.module/function/entity_export/7 that Note: ...
0
votes
2answers
44 views

What DataType should I use for serialized entity fields?

In many entities I have I am using a field that is for various metadata and it's stored as serialized array in blob form. When defining the field in entity's baseFieldDefnitions I've used the 'map' ...
0
votes
2answers
28 views

Get the last revision id of any given entity?

Is there a single, unified method in Drupal 7 to get the last revision id for any given entity object? If so, what is that method?
1
vote
0answers
24 views

Create relationship in views with custom entity

I have a custom entity (emtr) with a property called unit_tid (that relates to a taxonomy term). When I create a view of my custom entity I want access to the fields associated with the related ...
2
votes
0answers
38 views

EntityMalformedException in custom module. Can anyone see what I did wrong?

I'm trying to create a custom module and found out that it's causing the following error message to appear: EntityMalformedException: Missing bundle property on entity of type node. in ...
0
votes
1answer
36 views

View with relationship to custom entity via computed property

View with relationship to custom entity via computed property I have nodes connected to a custom entity (called here "myentity") via a computed property, like this: ...
1
vote
1answer
23 views

Change the confirm_form message of an entity made with eck

I have an entity created with eck module, and when I want to delete an entity the message is : Are you sure that you want to delete %id ? I want to change this message to show me the title of ...
0
votes
1answer
34 views

Access callback return true, but still is: you are not authorized to this page

function updatable_news_menu() { $items['updatable_news/test'] = array( 'title' => 'Updatable news', 'page callback' => 'updatable_news_test', 'access callback' => ...
0
votes
0answers
30 views

This Entity Reference View Isn't Working Right

Here's my situation: I have a node type for "School" and node type for "Classroom." In the School node type, I have an Entity Reference field for "Classroom," and vice-versa (i.e. I have a "School" ...
3
votes
2answers
77 views

Minimizing the time taken for entity_load while using for apachesolr indexing

I am working on a site with a specific node type that has close to 50 fields, most of which are taxonomy term references, a couple of node references and a few conventional text and integer values. ...
1
vote
2answers
28 views

Custom action to create a new entity based on a fields of an existing entity

There are two entity types on my site: 1) an application for participation (entityform) and 2) a participant profile (node). At first user creates an application for participation. And then site ...
0
votes
0answers
13 views

How move “Model Entity” under User Tabs?

I'm trying to move Model Entity interface under one of the User Tabs. Just for a simple test I modified all the path within model.module and model.admin.inc replacing "admin/content" with "user/%" ...
0
votes
1answer
17 views

Using tokens with entities?

I'd like to be able to use tokens with entities, similar to how they work for node right out of the box with core. However, for whatever reason, entity tokens are not available to me even though I ...
0
votes
1answer
17 views

How can users share entities if they have a relation?

Im setting up a pretty complicated website, where users are going to have access to a certain nodes depending on which entities the user of the relation has. with profile 2, i did add an entity ...
0
votes
1answer
31 views

How to add a field for each taxonomy term or entity reference chosen in Content Type?

I have a content type ‘Product’. When the user add a product it is necessary to choose a Store (a taxonomy term or another content type). After stores are chosen, it is necessary to add the directly ...
0
votes
2answers
23 views

Localize views menus links

I need a way to localize menu Items pointing to Views in a menu that has field translation. I cannot create them neither from views nor manually (weird access denied messages). EDIT: Here ...
2
votes
1answer
33 views

Bulk Delete Custom Entities (Not Entity Types)

I have a 5000+ entries for custom Entities created by the RedHen module (https://drupal.org/project/redhen). I want to wipe them completely from the system (they are all test entries). How can I do ...
0
votes
1answer
31 views

Is there an hook to react to custom entity updates?

I need to react to updates of custom entities wich are using Entity API (Redhen organization in my case). I tried using hook_entity_update($entity, $type) but it does not seem to be fired when ...
1
vote
1answer
49 views

if isset, is there a better way?

Currently I'm retrieving values from entityform_wrapper and checking if the field exists (fields aren't required and fail if don't exist) Is there a better way than going through each field like ...
1
vote
0answers
20 views

Entity specific rules with same events. Is Rules module a good fit for this use case? [closed]

I am using Drupal 7 and below is my use-case I have 2 entities 'course' and 'session'. A course contains multiple sessions. A session can be marked complete based on various completion criteria. ...
1
vote
1answer
21 views

EntityForm Loop

Is there a way to loop through entityform fields? Currently I'm pulling individual form values out like this, $var = $entityform_wrapper->field_name->value(); I'd like to do something like a ...