You are here

field_timer.api.php in Field Timer 7

Same filename and directory in other branches
  1. 7.2 field_timer.api.php

Hooks provided by the Field Timer module.

File

field_timer.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the Field Timer module.
 */

/**
 * Allows modules to define date properties of an entity type.
 *
 * @return array
 * Keys of the array are entity types and values are arrays described
 * properties. Each key of subarray is property name and value is property
 * human readable name.
 *
 * @see field_timer_field_timer_entity_properties()
 */
function hook_field_timer_entity_properties() {
  $properties = array(
    'node' => array(
      'created' => t('Node create date'),
      'changed' => t('Node last change date'),
    ),
  );
  return $properties;
}

/**
 * Allow module to alter description of entity date properties.
 *
 * @see hook_field_timer_entity_properties()
 */
function hook_field_timer_entity_properties_alter(&$properties) {
}

Functions

Namesort descending Description
hook_field_timer_entity_properties Allows modules to define date properties of an entity type.
hook_field_timer_entity_properties_alter Allow module to alter description of entity date properties.