diff --git a/webform_entity.module b/webform_entity.module index 2048f06cd2d56265e4dbef71a31355c4c2b6a178..b9d7ea652408c9049b5b9ccf85a19ee2b6e46a3c 100644 --- a/webform_entity.module +++ b/webform_entity.module @@ -123,6 +123,31 @@ function webform_entity_entity_info() { return $entity_info; } +/** + * Implements hook_entity_property_info(). + */ +function webform_entity_entity_property_info() { + $info['webform_submission_entity']['properties']['sid'] = array( + 'label' => t("Webform Submission ID"), + 'type' => 'integer', + 'description' => t("The unique ID of the submission."), + 'schema field' => 'sid', + ); + $info['webform_submission_entity']['properties']['nid'] = array( + 'label' => t("Webform Node ID"), + 'type' => 'integer', + 'description' => t("The node ID of the submission's webform."), + 'schema field' => 'nid', + ); + $info['webform_submission_entity']['properties']['uid'] = array( + 'label' => t("Webform Submission User ID"), + 'type' => 'integer', + 'description' => t("The user ID of the submission's author."), + 'schema field' => 'uid', + ); + return $info; +} + /** * Implements hook_token_info(). */