You are here

function content_profile_theme_variables::get_variable in Content Profile 6

Gets a single template variable for the content profile of this type.

Parameters

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

$name: The name of the variable to get.

Return value

The variable or FALSE if there has been no profile created yet.

File

./content_profile.theme_vars.inc, line 80
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_variable($type, $name) {
  if ($vars = $this
    ->get_variables($type)) {
    return $vars[$name];
  }
  return FALSE;
}