function entity_metadata_form_comment

cis7 callbacks.inc entity_metadata_form_comment($comment)
cle7 callbacks.inc entity_metadata_form_comment($comment)
elmsmedia7 callbacks.inc entity_metadata_form_comment($comment)
icor7 callbacks.inc entity_metadata_form_comment($comment)
meedjum_blog7 callbacks.inc entity_metadata_form_comment($comment)
mooc7 callbacks.inc entity_metadata_form_comment($comment)

Callback to get the form of a comment.

1 string reference to 'entity_metadata_form_comment'
_entity_info_add_metadata in sites/all/modules/ulmus/entity/entity.module
Adds metadata and callbacks for core entities to the entity info.

File

sites/all/modules/ulmus/entity/modules/callbacks.inc, line 969
Provides various callbacks for the whole core module integration.

Code

function entity_metadata_form_comment($comment) {
  if (!isset($comment->node_type)) {
    $node = node_load($comment->nid);
    $comment->node_type = 'comment_node_' . $node->type;
  }
  return drupal_get_form($comment->node_type . '_form', $comment);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.