is_content_profile

Versions
6
is_content_profile($type)

Determine if a given node is a content_profile.

Parameters

$type The node object or the node's type

▾ 5 functions call is_content_profile()

content_profile_form_alter in contributions/content_profile/content_profile.module
Implementation of hook_form_alter().
content_profile_get_types in contributions/content_profile/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 contributions/content_profile/content_profile.module
Implementation of hook_nodeapi().
content_profile_node_type in contributions/content_profile/content_profile.module
Implementation of hook_node_type(). Rename or delete the settings variable if a type changes.
realname_nodeapi in contributions/realname/realname.module
Implementation of hook_nodeapi().

Code

contributions/content_profile/content_profile.module, line 197

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

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.