drupal_clone

Versions
5 – 6
drupal_clone($object)

Provide a substitute clone() function for PHP4.

Related topics

▾ 30 functions call drupal_clone()

ctools_node_attachments_content_type_render in contributions/ctools/plugins/content_types/node_context/node_attachments.inc
ctools_node_attachments_content_type_render in contributions/ctools/plugins/content_types/node_context/node_attachments.inc
ctools_node_book_children_content_type_render in contributions/ctools/plugins/content_types/node_context/node_book_children.inc
ctools_node_book_nav_content_type_render in contributions/ctools/plugins/content_types/node_context/node_book_nav.inc
ctools_node_book_nav_content_type_render in contributions/ctools/plugins/content_types/node_context/node_book_nav.inc
ctools_node_comments_content_type_render in contributions/ctools/plugins/content_types/node_context/node_comments.inc
ctools_node_comment_form_content_type_render in contributions/ctools/plugins/content_types/node_context/node_comment_form.inc
ctools_node_content_content_type_render in contributions/ctools/plugins/content_types/node_context/node_content.inc
Render the node content.
ctools_node_links_content_type_render in contributions/ctools/plugins/content_types/node_context/node_links.inc
Output function for the 'node' content type. Outputs a node based on the module and delta supplied in the configuration.
ctools_node_links_content_type_render in contributions/ctools/plugins/content_types/node_context/node_links.inc
Output function for the 'node' content type. Outputs a node based on the module and delta supplied in the configuration.
ctools_node_type_desc_content_type_render in contributions/ctools/plugins/content_types/node_context/node_type_desc.inc
Output function for the 'node' content type. Outputs a node based on the module and delta supplied in the configuration.
ctools_profile_fields_content_type_render in contributions/ctools/plugins/content_types/user_context/profile_fields.inc
'Render' callback for the 'profile fields' content type.
ctools_term_description_content_type_render in contributions/ctools/plugins/content_types/term_context/term_description.inc
ctools_term_list_content_type_render in contributions/ctools/plugins/content_types/term_context/term_list.inc
ctools_user_picture_content_type_render in contributions/ctools/plugins/content_types/user_context/user_picture.inc
ctools_user_profile_content_type_render in contributions/ctools/plugins/content_types/user_context/user_profile.inc
Render the user profile content type.
ctools_vocabulary_terms_content_type_render in contributions/ctools/plugins/content_types/vocabulary_context/vocabulary_terms.inc
Output function for the 'vocabulary terms' content type. Outputs a list of terms for the input vocabulary.
event_calendar_data in contributions/event/event.module
Returns an array of nodes that occur on a given date. Handles content type and taxonomy filters.
fieldgroup_view_group in contributions/cck/modules/fieldgroup/fieldgroup.module
Render a single field group, fully themed with label.
node_export_node_clone in contributions/node_export/node_export.module
Prepare a clone of the node during import.
node_export_node_clone in contributions/node_export/node_export.module
Prepare a clone of the node during import.
node_export_node_export in contributions/node_export/node_export.module
Exports a node - populate a node code form set $return_code to TRUE to not return form but the code instead. set $format to some string if encoding should be handled by some module that will recognise the string.
node_load in drupal/modules/node/node.module
Load a node object from the database.
node_preview in drupal/modules/node/node.pages.inc
Generate a node preview.
node_unpublish_by_keyword_action in drupal/modules/node/node.module
Implementation of a configurable Drupal action. Unpublish a node if it contains a certain string.
page_manager_export_task_handler in contributions/ctools/page_manager/page_manager.module
Export a task handler into code suitable for import or use as a default task handler.
pathauto_user in contributions/pathauto/pathauto.module
Implementation of hook_user() for users, trackers, and blogs.
taxonomy_get_tree in drupal/modules/taxonomy/taxonomy.module
Create a hierarchical representation of a vocabulary.
theme_node_preview in drupal/modules/node/node.pages.inc
Display a node preview for display during node creation and editing.
uc_recurring_product_process_order in contributions/uc_recurring/modules/uc_recurring_product/uc_recurring_product.module
Passes the information onto the specified fee handler for processing.

Code

drupal/includes/common.inc, line 1734

<?php
function drupal_clone($object) {
  return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object);
}
?>

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 (without spaces) shown in the image.