function redhen_entity_types in RedHen CRM 7
Return an array of Redhen entity types useful for defining menu callbacks.
Return value
array Associative array keyed by entity type, with a value of the entity path.
5 calls to redhen_entity_types()
- redhen_activity_menu in modules/
redhen_activity/ redhen_activity.module - Implements hook_menu().
- redhen_note_menu in modules/
redhen_note/ redhen_note.module - Implements hook_menu().
- redhen_relation_handler_field_relation_link_combined_edit::options_form in modules/
redhen_relation/ includes/ views/ redhen_relation_handler_field_relation_link_combined_edit.inc - Default options form provides the label widget that all fields should have.
- redhen_relation_handler_field_relation_link_combined_edit::option_definition in modules/
redhen_relation/ includes/ views/ redhen_relation_handler_field_relation_link_combined_edit.inc - Information about options for all kinds of purposes will be held here.
- redhen_relation_handler_field_relation_link_combined_edit::render_link in modules/
redhen_relation/ includes/ views/ redhen_relation_handler_field_relation_link_combined_edit.inc - Renders the link.
File
- ./
redhen.module, line 274 - Defines basic functionality common to all parts of the Redhen CRM.
Code
function redhen_entity_types() {
$types = array(
'redhen_org' => 'org',
'redhen_contact' => 'contact',
);
$active = array();
foreach ($types as $key => $type) {
if (module_exists($key)) {
$active[$key] = $type;
}
}
return $active;
}