You are here

function ca_ca_entity in Ubercart 6.2

Implements hook_ca_entity().

Demonstrates defining a data object that may be passed in to ca_pull_trigger and mapped to a predicate's arguments.

File

ca/ca.ca.inc, line 18
This file includes some generic conditions and actions.

Code

function ca_ca_entity() {
  $entities = array();
  $entities['user'] = array(
    '#title' => t('Drupal user'),
    '#type' => 'object',
    '#load' => 'user_load',
    '#save' => 'user_save',
  );
  $entities['node'] = array(
    '#title' => t('Node'),
    '#type' => 'object',
    '#load' => 'node_load',
    '#save' => 'node_save',
  );
  $entities['arguments'] = array(
    '#title' => t('Trigger arguments'),
    '#type' => 'array',
  );
  return $entities;
}