You are here

crm_core_contact_ui.theme.inc in CRM Core 7

Contains theme implementation.

File

modules/crm_core_contact_ui/theme/crm_core_contact_ui.theme.inc
View source
<?php

/**
 * @file
 * Contains theme implementation.
 */

/**
 * Renders list of contact types available for contact creation.
 */
function theme_crm_core_contact_ui_add_list($variables) {
  $content = $variables['content'];
  $output = '';
  if ($content) {
    $output .= '<dl>';
    foreach ($content as $item) {
      $output .= '<dt>' . l(t($item['title']), $item['href'], $item['localized_options']) . '</dt>';
      $output .= '<dd>' . t($item['description']) . '</dd>';
    }
    $output .= '</dl>';
  }
  return $output;
}

Functions

Namesort descending Description
theme_crm_core_contact_ui_add_list Renders list of contact types available for contact creation.