function scald_entity_property_info in Scald: Media Management made easy 7
Implements hook_entity_property_info().
File
- ./
scald.module, line 1842 - The Scald Core, which handles all Scald Registries and dispatch.
Code
function scald_entity_property_info() {
$info = array();
// Add meta-data about the basic node properties.
$properties =& $info['scald_atom']['properties'];
$properties['sid'] = array(
'label' => t("Scald ID"),
'type' => 'integer',
'description' => t("The unique ID of the atom."),
'schema field' => 'sid',
);
$properties['provider'] = array(
'label' => t('Scald Provider'),
'description' => t("The Provider of the atom."),
'setter callback' => 'entity_property_verbatim_set',
'required' => TRUE,
'schema field' => 'provider',
);
$properties['type'] = array(
'label' => t("Atom type"),
'type' => 'token',
'description' => t("The type of the atom."),
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer scald atoms',
'options list' => 'scald_type_get_names',
'required' => TRUE,
'schema field' => 'type',
);
$properties['base_id'] = array(
'label' => t("BaseID"),
'description' => t("The BaseID of the atom."),
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'base_id',
'required' => TRUE,
);
$properties['title'] = array(
'label' => t("Title"),
'description' => t("The title of the atom."),
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'title',
'required' => TRUE,
);
$properties['url'] = array(
'label' => t("URL"),
'description' => t("The URL of the atom."),
'getter callback' => 'entity_metadata_entity_get_properties',
'type' => 'uri',
'computed' => TRUE,
);
$properties['actions'] = array(
'label' => t("Actions"),
'description' => t("The actions that are allowed for this atom."),
'type' => 'integer',
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer scald atoms',
'schema field' => 'actions',
);
$properties['publisher'] = array(
'label' => t("Publisher"),
'type' => 'user',
'description' => t("The user who published this atom."),
'setter callback' => 'entity_property_verbatim_set',
'setter permission' => 'administer scald atoms',
'required' => TRUE,
'schema field' => 'publisher',
);
$properties['created'] = array(
'label' => t('Created'),
'description' => t("The Unix timestamp when the atom was created."),
'setter callback' => 'entity_property_verbatim_set',
'required' => TRUE,
'schema field' => 'created',
);
$properties['changed'] = array(
'label' => t('Changed'),
'description' => t("The Unix timestamp when the atom was most recently saved."),
'setter callback' => 'entity_property_verbatim_set',
'required' => TRUE,
'schema field' => 'changed',
);
return $info;
}