You are here

function content_profile_theme_variables::get_view in Content Profile 6

Generate a display of the given node.

Parameters

$type: The type of the user's content profile

$teaser: Whether to display the teaser only or the full form.

$page: Whether the node is being displayed by itself as a page.

$links: Whether or not to display node links. Links are omitted for node previews.

Return value

An HTML representation of the themed node or FALSE if there has been no profile created yet.

File

./content_profile.theme_vars.inc, line 103
Provides a helper class for lazy loading of variables for themes.

Class

content_profile_theme_variables
A helper class, which offers lazy loading of variables for themes.

Code

function get_view($type, $teaser = FALSE, $page = FALSE, $links = TRUE) {
  if ($node = content_profile_load($type, $this->uid)) {
    return node_view($node, $teaser, $page, $links);
  }
  return FALSE;
}