There are by far the two callbacks I use the most, so here's documentation for them.

Background: there is now a core documentation standard for documenting these. More details: https://drupal.org/node/1354

Comments

joachim’s picture

Status: Active » Needs review
StatusFileSize
new7.07 KB
joachim’s picture

chris matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 5 year old patch to entity.api.php and callbacks.inc does not apply to the latest entity 7.x-1.x-dev and (if still relevant) needs a reroll.

Checking patch entity.api.php...
2240921.entity.access-create-callbacks-docs.patch:110: new blank line at EOF.
+

Checking patch modules/callbacks.inc...
error: while searching for:
}

/**
 * Access callback for the user entity.
 */
function entity_metadata_user_access($op, $entity = NULL, $account = NULL, $entity_type) {
  $account = isset($account) ? $account : $GLOBALS['user'];

error: patch failed: modules/callbacks.inc:701
error: modules/callbacks.inc: patch does not apply