function redhen_org_types_list_page in RedHen CRM 7
Page callback for adding an organization.
Parameters
string $type: The type of organization to return a form for.
1 string reference to 'redhen_org_types_list_page'
- redhen_org_menu in modules/
redhen_org/ redhen_org.module - Implements hook_menu().
File
- modules/
redhen_org/ includes/ redhen_org.pages.inc, line 162
Code
function redhen_org_types_list_page($type = 'default') {
$item = menu_get_item();
$content = system_admin_menu_block($item);
// Bypass the redhen_org/add listing if only one contact type is available.
if (count($content) == 1) {
$item = array_shift($content);
drupal_goto($item['href']);
}
$render = array(
'#theme' => 'redhen_org_add_list',
'#content' => $content,
);
return $render;
}