"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
1answer
18 views

Drupal 7 custom submit handler not getting triggered

I am having a problem connecting a custom submit handler to a form. I am trying to switch off redirecting after the save of an eck entity on edit form. But i am not getting that far as my submit ...
0
votes
0answers
10 views

Entityform multi check boxes only first selection comes in email

I am using the Entityforms Module for forms. I have a simple form with textfields and a checkbox multi-select field. When you check more then one checkbox, only the first one comes through the email. ...
0
votes
1answer
7 views

Taxonomy not working with the ECK module

I have created a image gallery using the ECK module and for some reason the taxonomy is not working. These are the step I follow to created the image gallery. Created a Entity called Media ...
0
votes
0answers
15 views

Drupal 7 views rendered entity + search

I created a simple custom entity with Entity Api. It has a simple db table with records, and I did an index with Search API from this. My goal is to create a view with "Search API multi-index ...
0
votes
0answers
15 views

How to use entity as form(to input data) created by ECK(Entity construction kit) module

I have created 2 entities through ECK module. and I want that entity use on my user profile(on Panel). then it is possible to call or put that entity on any form, any content type.
0
votes
0answers
26 views

Build a Form to enter data into database

So, yes I have read a plethora of posts that say you can add data into the database with EntityForm or Webform - the UI version not custom code. However I have tried to build out a form with both to ...
0
votes
1answer
4 views

Drupal 7, Entity Reference user autocomplete field

I have a custom content type that has a users: entity reference autocomplete field. For some reason the list gets populated as [realname] ([name]). In other words the realname and username tokens are ...
0
votes
1answer
22 views

multiple entity type in entity field query

how to add mutilple entity_type and bundles in EntityFieldQuery? $query->entityCondition('entity_type', 'profile2') ->entityCondition('bundle', 'user_profile'); Is there any way to do ...
0
votes
1answer
29 views

Is it possible to disable a node module?

Is it possible to disable a node module in Drupal 7? As I understand through interface it is not possible. Why node module is so important? What if I'm going to use only custom entities?
0
votes
0answers
12 views

creating own entity or using nodes with very many fields

in Germany we have an official xsd file to standardize attributes for real estates. This file contains about 3500 lines full of attributes. I have to bring it in mysql the drupal way. As a result I ...
0
votes
1answer
14 views

Display blocked users to anonymous

How can I display blocked users in a template file? I have an Entity Reference field that I'd like to use to show anonymous users any blocked or active users added to the Entity Reference field. Is ...
0
votes
1answer
28 views

Drupal entity from different database

I have an existing database (which is not under my control) that i want to use as base database for my entity. However I'm stuck at getting the data from the database. There already exists a question ...
1
vote
1answer
42 views

Performance: Efficient use of EntityFieldQuery (with node_load OR node_load_multiple) to update thousands of nodes with/without conditions

I have script that queries a system called Symplectic for publications of over 30 users (each authored over 300 publications). Most of the publications are authored jointly by more than one user. I ...
0
votes
0answers
18 views

hook_node_presave() fired twice when adding new node

I've just noticed that hook_node_presave($node) is fired twice when adding new node. Once it's called from node_form_submit handler and the second time from entity_save. Turns out $node->nid is ...
0
votes
0answers
13 views

Returning a variable from a rules action

I am trying to create a variation on Fetch Entity, and I'm having trouble returning an entity. I'm just grabbing the data using db_query, and trying to return an array of nodes that are loaded, but ...
2
votes
1answer
23 views

3-rd decimal digit has disappeared in the output

I created a field, attached it to the entity: coefficient_to_second_side. Type in the database is decimal(10,3). Then I added a value: 1.001. When I select this field manually from the database, the ...
0
votes
2answers
21 views

Create referenced node on the fly in Drupal 7?

I have a node called "house" which references another node called "room". When I create a house, i.e. go to node/add/house, there will be a block where I can choose all the rooms I've created. What I ...
0
votes
2answers
19 views

How to remove entity type from drush?

How do I remove an entity type via drush? List of entity types I can get via: drush eval 'print_r(array_keys(entity_get_info()));' Array ( [0] => node [1] => taxonomy_term [2] ...
0
votes
1answer
15 views

How to list all available entity types?

How to list all available entity types in Drupal using drush? Related: get ALL node types
0
votes
1answer
15 views

Entity Form to insert data into Custom Entities

I am finally getting to Entity Construction Kit. I have built out my entity with fields, I have also set up a feed to import data into the entity. However, I also need to build a form that will push ...
0
votes
1answer
14 views

How to display a view of products that are selectable

I am working on a site that will capture site details by the sales reps. They will also use the site to order products for the customer and at the same time enter the installation criteria of the ...
1
vote
1answer
21 views

Is it a good idea to mix node api and entity api?

I have a custom module that depends on several contrib modules. One of the contrib modules has a new version out and has switched to using entities. The code in the custom module is using node api ...
1
vote
0answers
19 views

Injecting field data in a custom entity

I have created a custom fieldable entity. Now I want to inject the field data into the entity and render the complete entity with the fields. The following code is working for text fields and ...
0
votes
0answers
13 views

Tell Display Suite to not load all fields for performance?

Afaik, before Display Suite renders an entity, it first calls entity_load() or something equivalent (e.g. node_load()), which loads all the entity fields. If the entity has many fields, but only some ...
0
votes
1answer
21 views

Stop rendering custom entity label in view mode

I have declared a custom entity with a schema with a few fields on which is all working as I expect. I want to remove the label when rendering the entity so have tried the following. Added some ...
0
votes
0answers
19 views

How to implement a disaggregated data property

When users on my site register, they must enter some address information after which an external API call is made. The response contains an array of additional, useful location information. Some of ...
1
vote
0answers
19 views

How to use EntityFieldQuery::fieldCondition for entity reference field

Suppose, we have an entity "song", that has an entity reference field, called "authors": I added a filter for this field as a group of checkboxes: After the user submits the form with checkboxes ...
0
votes
0answers
44 views

Warning: array_flip(): Can only flip STRING and INTEGER values!

I have a custom module that hooks into a commerce extension module the function splits a payment for a product and splits it to beneficiaries who helped create the product. I use user_referance ...
1
vote
1answer
21 views

Get a list of revision IDs for any given entity?

What's the most uniform method for getting a list of revision IDs for any given entity, programmatically?
0
votes
0answers
7 views

Views custom entity permissions

I've created a custom entity and set it up so I can view it in views, the problem is that when I create a list of custom entities using views it just ignores the permissions. I have a permission so ...
1
vote
1answer
25 views

Issues with the entity field output

Suppose, we have an entity "song", that has a required field, called "authors": In the list of songs in the admin panel I want to output the list of all the authors in the search block: //search ...
0
votes
1answer
8 views

How to add data to a message type custom field that's inherited by all message instances?

I'm using the message module, and I have some message types. Each message type needs to have a node reference field on it whose value would not change for the entire message type. But different values ...
1
vote
1answer
32 views

How do I use an array with an 'IN' condition on EntityFieldQuery::entityCondition?

I read that entityCondition should take an array, and I've constructed an array according to examples I've seen on the web. But no dice. I get the error below. If I use a string, the error goes away. ...
0
votes
0answers
36 views

How to show a confirmation form in a modal to delete one entity whilst adding/editing a different entity/node?

I have entity 1 (E1), the main entity, in which entity 2 (E2) can be used/edited/deleted. I would like to be able to show a confirm_form after choosing to delete E2 in a modal whilst creating/editing ...
0
votes
2answers
32 views

Drupal commerce - purchase a product at registration

I'm trying to use Drupal Commerce for a subscription site that will have only one product to purchase - a subscription to a service. I'd prefer if a user could either do product subscription as a ...
0
votes
1answer
34 views

How to print specific fields in a view?

I have 3 content types: Country Destination Attraction Each attraction has an entity reference poiting to Destination. Each destination has an entity reference poiting to Country. I need to ...
0
votes
1answer
38 views

Creating a Custom Field Type for Fieldable Entities

Problem My custom field type will not save data. Every time I save the entity it is attached to (it doesn't matter what entity I do this on) the value always comes out NULL and SQL throws an error ...
0
votes
0answers
14 views

Can't delete entities, using entity_delete_multiple

I was studying, how to work with entities: http://www.bluespark.com/blog/drupal-entities-part-3-programming-hello-drupal-entity I downloaded the module, created by the author of that article. Then I ...
0
votes
0answers
23 views

Get a node and fields with SQL?

Is there any way in Drupal 7 to load a node and its fields without the Entity Query API? I need to get a field value based on another field in an external script, and don't want to bootstrap Drupal.
0
votes
2answers
62 views

Autocomplete on multiple fields Entity Reference

This is my case: I have a content type advertisement with some fields and an entity reference of content type product. The widget type of the entity reference is autocomplete. These are my settings ...
0
votes
0answers
7 views

Compound Field. Allow validation only on content edit

I have created a compound field following a tutorial in a book. I have also implemented validation which is working fine. I have also managed to only call the validation when content which uses this ...
2
votes
2answers
129 views

How to pass an extra argument to an entity form?

Suppose, I've two entities: entityA entityB A user creates an entityA and has the option of creating multiple types of entityB referenced from a single entityA. For example, a parent-child ...
1
vote
1answer
21 views

Referencing/relating content between content types

I'm completely noob on Drupal, actualy I'm trying to find a way to build a website idea using it. I want to let users/visitors to create travel tips, so at this site I'll have contents like: ...
0
votes
1answer
35 views

Making entities under another entitytype

Suppose, I've created -name -machine_name an entity_type myentity with its schema as: -name -machine_name Next, I want to create another entity subentity that will be grouped under myentity. ...
0
votes
0answers
11 views

Properties of entity is setting zero or empty

I have implemented hook_entity_property_info into my custom module to add custom properties with Order of ubercart. Code in custom_module.info.inc. function custom_module_entity_property_info() { ...
1
vote
0answers
28 views

How do I send an email to users who have been inactive for 30 days with a condition

I used the answer in How can I send email to user that is not logged in since 30 days? to successfully set up an action set component that would email the user and a rule that would schedule that ...
1
vote
1answer
22 views

How do I support text formats for an entity property?

I have a custom entity I've created following this basic SitePoint tutorial. My custom entity has just two properties, a name and description. My entity is not fieldable (maybe it needs to be?. I ...
1
vote
1answer
69 views

Passing object in routing.yml

I have an entity and when I try to pass the whole entity object, only the name is passed through the routing. Here is the relevant code in routing.yml: mymodule.myentity_info: path: ...
0
votes
2answers
24 views

Feeds : creating a node dependencies at importation

The Excel file I'm trying to import is comprised of two part, the first three columns describe a node that might or might not exist currently, and the three last columns are my entity informations. To ...
0
votes
0answers
15 views

Using content field widget in custom block?

I'm trying to figure out an easy way to implement a content field type (image_field) with a widget (imagefield_crop) on a custom block. The block currently has an upload image feature, but I want to ...