You are here

function party_edit_form_render in Party 8.2

Same name and namespace in other branches
  1. 7 plugins/content_types/party_edit_form.inc \party_edit_form_render()

Render the Party Attached Entity Edit Form

Parameters

$subtype:

$conf: Configuration as done at admin time

$args:

$context: Context - in this case we don't have any

Return value

An object with at least title and content members

1 string reference to 'party_edit_form_render'
party_edit_form.inc in plugins/content_types/party_edit_form.inc
CTools content for user edit form

File

plugins/content_types/party_edit_form.inc, line 44
CTools content for user edit form

Code

function party_edit_form_render($subtype, $conf, $args, $context) {
  $block = new stdClass();
  $block->title = t('Edit Party');
  $block->content = '';
  if (!empty($context->data)) {

    // Get hold of the form
    $form = drupal_get_form('party_edit_form_form', $context->data, $conf);

    // Render it...
    $block->content = drupal_render($form);
  }
  return $block;
}