Skip to content

Instantly share code, notes, and snippets.

@aaronschachter
Created November 25, 2013 15:38
Show Gist options
  • Save aaronschachter/7643201 to your computer and use it in GitHub Desktop.
Save aaronschachter/7643201 to your computer and use it in GitHub Desktop.
dosomething_campaign_entity_property_info stub
/**
* Implements hook_entity_property_info().
*/
function dosomething_campaign_entity_property_info() {
$info = array();
$properties = &$info['campaign']['properties'];
$properties['id'] = array(
'label' => t("Campaign ID"),
'type' => 'integer',
'description' => t("The unique campaign ID."),
'schema field' => 'id',
);
$properties['created'] = array(
'label' => t("Campaign ID"),
'type' => 'integer',
'description' => t("The unique campaign ID."),
'schema field' => 'id',
);
return $info;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment