entity API

oskar_calvo's picture

[d7] Como hacer traducible una entidad creada con entity api.

Buenas, he estado mirando por internet, y la verdad es que no he encontrado nada, únicamente esta pregunta: http://drupal.stackexchange.com/questions/176120/entity-translation-for-... pero que no tiene respuesta.

El caso es que tengo esta entidad:


/**
* Implements hook_entity_info().
*/
function territory_entity_info() {
$info = array();

$info['territory'] = array(
'label' => t('Territory'),
'base table' => 'territory',
'entity class' => 'Territory',
'controller class' => 'EntityAPIControllerExportable',

Read more
oxydog's picture

Delete Entity by GUID

Hi guys,

I'm new to Drupal API development, but I'm realising more and more every day how powerful it is, and I would like to start using it.

I'm not sure if this is the right place to post questions like this, but here goes:

Read more
AldenC's picture

VBO vs entity_property_info_alter to provide a list

Thanks to the screencasts by Mr. Falk, I have written a simple custom module to provide a list for rules that has the node IDs of all the pages in a book. This is a global variable provided by the entity API and it works great. Currently I think the only "out of the box" list regarding books is the ancestor: lists and they don't contain branches or children.

My plan is to use this list to perform actions and conditions on books like providing page numbers, deleting, flagging, and (I may be dreaming here) compile all pages into a pdf file for printing.

Read more
iribarne's picture

Broward Drupal Meeting Minutes - October 9, 2013

We held our Broward Drupal monthly meetup on Wednesday, October 9th from 7:00pm to 9:00pm.

In Person (Greater Fort Lauderdale, Broward County Florida):
Jay Epstein @jeppy64, Ben Groenevelt @dropfoundry, Michael Barton @TheBarton_ and me @hectoriribarne

Read more
kevinb623's picture

Backend Developer | Might & Main

Employment type: 
Contract
Telecommute: 
Allowed

Might & Main, a design firm located in Portland, Maine has an immediate need for a Drupal backend developer.

This contract position involves use of Drupal 7 APIs to create a system to transfer XML data via SFTP and must be completed by November 10, 2012

In particular, we'll need you to:

<

ul>

  • Create a system to ingest XML files provided by a third party data service provider via SFTP ensuring no duplication of records
  • XML data will be stored in a MySQL database using Drupal's Entity API
  • Read more
    scor's picture

    Entity RDF: data descriptions for plugable serializations of Drupal entities (JSON-LD and more)

    There's been lots of discussions on various approaches for serializing entities in the WSCCI group and with Drupal 8 feature freeze only a few months away, it's time to start coding. JSON-LD was chosen as a potential good candidate for serializing Drupal entities. One of the key features of JSON-LD is the ability to include a @context along with your data. This context describes the data present in the JSON document and is useful for consumers to understand how to best make use of the data.

    Read more
    fago's picture

    Entities are now classed objects using a defined interface

    The last entity type just moved to classed objects, so all core entity types are classed objects using a defined interface now! See the change record for details!

    Read more
    dsearle's picture

    How do I get a field (of a custom type) to appear in the Data Selector?

    Hi everybody, I'm using a development version of the WebSite Screenshot module which creates a new Formatter and Widget for fields to display screenshots (powered by a screenshot service) of URLs entered into the Drupal system. I have the URLs coming into one text field and I want to copy this value into the custom field created using the Screenshot type. My problem lies with the 'Set a Data Value' action.

    Read more
    NealB's picture

    Slides from the Entities presentation

    Here are my slides (as a PDF).

    Another really useful thing that the EntityAPI does for your entity is add integration with Views, Features, and Rules. I haven't played with these capabilities yet, but I'm sure it's easier than learning how to code to each of those modules' individual APIs.

    Entity types in core:

    <

    table>

    Entity Fieldable? Bundles Can add more bundles? file N file (default, not used) No node Y article, page Yes. Add content types. Read more
    fago's picture

    Entity API update and summary

    Here is a short summary of what we discussed at the Drupalcon London.

    There has been a core conversation talk by Peter Wolanin and me, of which you can find the video here and the slides here.

    Roadmap

    The further roadmap is to:

    • define the API + do a test entity type
    • port a core entity
    • do performance testing
    • implement revisions + port node and other entity types
    • refactor field storage

    Performance testing basically should be repeated after every step.

    Status

    • There is a first patch that moves the entity API in its own module, which we need to get in first.
      http://drupal.org/node/1018602 -> Needs review.
    • There is an issue for implementing basic CRUD and porting a first entity type: comment
      http://drupal.org/node/1184944 - work in progress
    • We've worked on defining the basics of the API at the Drupalcon codesprint (see below).
    Read more
    Subscribe with RSS Syndicate content