You are here

function theme_redhen_org_add_list in RedHen CRM 7

Returns HTML for a list of available org types for org creation.

Parameters

array $variables: An associative array containing:

  • content: An array of content types.
1 theme call to theme_redhen_org_add_list()
redhen_org_types_list_page in modules/redhen_org/includes/redhen_org.pages.inc
Page callback for adding an organization.

File

modules/redhen_org/redhen_org.module, line 734

Code

function theme_redhen_org_add_list($variables) {
  $content = $variables['content'];
  $output = '';
  if ($content) {
    $output = '<dl class="node-type-list">';
    foreach ($content as $item) {
      $output .= '<dt>' . l($item['title'], $item['href'], $item['localized_options']) . '</dt>';
      $output .= '<dd>' . filter_xss_admin($item['description']) . '</dd>';
    }
    $output .= '</dl>';
  }
  else {
    $output = '<p>' . t('You have not created any organization types yet. Go to the <a href="@link">organization type creation page</a> to add a new RedHen organization type.', array(
      '@link' => url('admin/structure/redhen/org_types'),
    )) . '</p>';
  }
  return $output;
}