function field_rules_entity_info in Field Rules 7
Implement hook_entity_info().
File
- ./
field_rules.module, line 11
Code
function field_rules_entity_info() {
return array(
'node_type' => array(
'label' => t('Node Type'),
'controller class' => 'DrupalDefaultEntityController',
'base table' => 'node_type',
'entity keys' => array(
'id' => 'type',
'name' => 'name',
),
'creation callback' => 'node_type_set_defaults',
'save callback' => 'field_rules_node_type_save',
'deletion callback' => 'node_type_delete',
),
);
}