You are here

function is_content_profile in Content Profile 6

Determine if a given node is a content_profile.

Parameters

$type: The node object or the node's type

4 calls to is_content_profile()
content_profile_form_alter in ./content_profile.module
Implementation of hook_form_alter().
content_profile_get_types in ./content_profile.module
Builds a list of available content types that are marked as content_profiles, and returns an array of content profile content types in the specified format.
content_profile_nodeapi in ./content_profile.module
Implementation of hook_nodeapi().
content_profile_node_type in ./content_profile.module
Implementation of hook_node_type(). Rename or delete the settings variable if a type changes.

File

./content_profile.module, line 193

Code

function is_content_profile($type) {
  if (is_object($type)) {
    $type = $type->type;
  }
  return variable_get('content_profile_use_' . $type, FALSE);
}