summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgundalo2015-11-02 15:42:06 (GMT)
committerAaron Bauman2015-11-02 15:42:06 (GMT)
commit5a658bb2881b8af4b10a86a4d3ee6bf46d46daea (patch)
tree55820b5cde06bb898404baebb47363d9d10b3419
parentade5179e9fb06e6bcc04687a498c2a4fa722a9a6 (diff)
Issue #1941352 by Jon Pugh, mstrelan: Missing hook_entity_property_info() implementation
-rw-r--r--webform_entity.module25
1 files changed, 25 insertions, 0 deletions
diff --git a/webform_entity.module b/webform_entity.module
index 2048f06..b9d7ea6 100644
--- a/webform_entity.module
+++ b/webform_entity.module
@@ -124,6 +124,31 @@ function webform_entity_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().
*/
function webform_entity_token_info() {