You are here

function content_profile_theme in Content Profile 6

Implementation of hook_theme().

File

./content_profile.module, line 555

Code

function content_profile_theme() {
  $return = array(
    'content_profile_display_view' => array(
      'template' => 'content_profile-display-view',
      'arguments' => array(
        'element' => NULL,
      ),
      'file' => 'content_profile.theme.inc',
    ),
    'content_profile_display_add_link' => array(
      'file' => 'content_profile.theme.inc',
    ),
    'content_profile_display_link' => array(
      'file' => 'content_profile.theme.inc',
    ),
    'content_profile_display_tab_view' => array(
      'file' => 'content_profile.theme.inc',
    ),
    'content_profile_display_tab_edit' => array(
      'file' => 'content_profile.theme.inc',
    ),
  );
  if (module_exists('pageroute')) {
    $return['content_profile_pageroute_empty'] = array(
      'arguments' => array(
        'type_name' => NULL,
      ),
      'file' => 'content_profile.pageroute.inc',
    );
  }

  // Imagecache presets to link to user profile page.
  if (module_exists('imagecache')) {
    foreach (imagecache_presets() as $preset) {
      $return['content_profile_formatter_' . $preset['presetname'] . '_userlink'] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_content_profile_imagecache_formatter_userlink',
        'file' => 'content_profile.theme.inc',
      );
    }
  }
  return $return;
}