Maintainers strive to actively monitor issues and respond in a timely manner.

Entity modified

Drupal does not force entity types to provide a last modified date, nor provides any standard naming convention for those that do.

This module steps in to provide a programmatic way to retrieve the name of the modified property. When the name is unknown, entity modified tracks the date itself.

This module will not provide anything worthwhile on its own, so only install this module if another module depends on it.

Use

To retrieve the last modified timestamp of an entity, you would make a call like the following:

  $modified = entity_modified_last($entity_type, $entity);

Entity type creators

If your module defines an entity type, you can let entity modified know about it by defining the 'modified property name' in hook_entity_info().

You can also alter already existing property names by using hook_entity_info_alter().

An example for a fictional module named building, that creates an entity type named window, that has a last changed property of changed follows:

/**
 * Implements hook_entity_info().
 */
function building_entity_info() {
  $types = array();
  $types['window'] = array(
    'label' => 'Window',
    // Properties from hook_entity_info() here.
    'modified property name' => 'changed',
  );
  return $types;
}

Dependencies

API Tokens

The API Tokens module provides an input filter that allows to replace custom parametric tokens with rendered content. Each declared token binds to its handler function, that returns content, token will be replaced with. Token may contain parameters that will be passed to its handler function.

UC Buckaroo

Buckaroo logo

Integrates Buckaroo PSP gateway as a checkout method for Ubercart. Developed on the new payment standard BPE3.

d3.js

The d3.js module provides integration of D3 visualization library with Drupal.

Dual Scrollbars

This project will empower views output to have a scrollbar at top or to have a scrollbar at left inaddation of having scrollbar at bottom as well as right.

Simplified Social share

Simplified Social Share

Let your users share via their accounts on popular social networks such as Facebook, Google, Twitter, LinkedIn, Vkontakte and over 50 more.

Pages

Subscribe with RSS Subscribe to RSS - Actively maintained