function theme_content_profile_display_add_link in Content Profile 6
Themes the add link.
1 theme call to theme_content_profile_display_add_link()
- content_profile_show_profiles in ./
content_profile.module - Returns an array suitable for use with drupal_render, that shows all content_profiles as configured by the admin.
File
- ./
content_profile.theme.inc, line 11 - Theme and template preprocessing code
Code
function theme_content_profile_display_add_link($element) {
$type = $element['#content_type'];
$uid = $element['#admin'] ? 'uid=' . intval($element['#uid']) . '&' : '';
$text = $element['#admin'] ? t("Create the user's @profile_node.", array(
'@profile_node' => node_get_types('name', $type),
)) : t("Create your @profile_node.", array(
'@profile_node' => node_get_types('name', $type),
));
return l($text, content_profile_get_add_path($type, $element['#uid']), array(
'query' => $uid . drupal_get_destination(),
'html' => TRUE,
));
}