function multiple_email_entity_property_info in Multiple E-mail Addresses 7
Same name and namespace in other branches
- 2.x multiple_email.module \multiple_email_entity_property_info()
Implements hook_entity_property_info().
File
- ./
multiple_email.module, line 833 - multiple_email module file
Code
function multiple_email_entity_property_info() {
$info = array();
$properties =& $info['multiple_email']['properties'];
$properties['eid'] = array(
'label' => t("Email ID"),
'type' => 'integer',
'description' => t("The unique Email ID."),
'schema field' => 'eid',
);
$properties['email'] = array(
'label' => t("Email address"),
'type' => 'text',
'description' => t("The email address."),
'schema field' => 'email',
'required' => TRUE,
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer multiple emails',
);
$properties['time_registered'] = array(
'label' => t("Registered"),
'type' => 'date',
'description' => t("The time the email address was registered."),
'schema field' => 'time_registered',
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer multiple emails',
);
$properties['confirmed'] = array(
'label' => t("Confirmed"),
'type' => 'boolean',
'description' => t("If the email address is confirmed."),
'schema field' => 'confirmed',
'required' => TRUE,
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer multiple emails',
);
$properties['confirm_code'] = array(
'label' => t("Confirm code"),
'type' => 'text',
'description' => t("The confirm code."),
'schema field' => 'confirm_code',
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer multiple emails',
);
$properties['time_code_generated'] = array(
'label' => t("Confirm code timestamp"),
'type' => 'date',
'description' => t("The time the confirm code was generated."),
'schema field' => 'time_code_generated',
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer multiple emails',
);
$properties['attempts'] = array(
'label' => t("Confirmation attempts"),
'type' => 'integer',
'description' => t("How often confirmation code input was tried."),
'schema field' => 'attempts',
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer multiple emails',
);
$properties['user'] = array(
'label' => t("User"),
'type' => 'user',
'description' => t("The user with that address."),
'getter callback' => 'entity_metadata_node_get_properties',
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer multiple emails',
'required' => TRUE,
'schema field' => 'uid',
);
return $info;
}