function invite_get_types in Invite 7.4
List of Invite Types.
Parameters
string $type_name:
Return value
array|mixed
11 calls to invite_get_types()
- Invite::type_details in includes/
invite.controller.inc - Invite::__construct in includes/
invite.controller.inc - invite_add in includes/
invite.admin.inc - Add new invite page callback.
- invite_admin_add_page in includes/
invite.admin.inc - Page to select invite Type to add new invite.
- invite_block_info in ./
invite.module - Implements hook_block_info().
1 string reference to 'invite_get_types'
- invite_type_form in includes/
invite.admin.inc - Generates the invite type editing form.
File
- ./
invite.module, line 710
Code
function invite_get_types($type_name = NULL) {
$types = entity_load_multiple_by_name('invite_type', isset($type_name) ? array(
$type_name,
) : FALSE);
return isset($type_name) ? reset($types) : $types;
}