You are here

function theme_crm_core_contact_ui_add_list in CRM Core 7

Renders list of contact types available for contact creation.

4 theme calls to theme_crm_core_contact_ui_add_list()
crm_core_activity_ui_add_activity in modules/crm_core_activity_ui/
Add activity page callback.
crm_core_contact_ui_add_page in modules/crm_core_contact_ui/
Show a list of contact types that can be added into the CRM.
crm_core_default_matching_engine_config_page in modules/crm_core_default_matching_engine/
Page callback for engine configuration page.
crm_core_relationship_ui_add_relationship in modules/crm_core_relationship_ui/
Return a list of links to add relationship for specific CRM contact.


modules/crm_core_contact_ui/theme/, line 11
Contains theme implementation.


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;