After creating an invite type with the invite module, a block is generated where a user can enter his email address
however when inspecting the form,

here is the output of the text form

<input type="text" maxlength="255" size="60" value="" name="field_invitation_email_address[und][0][value]" id="edit-field-invitation-email-address-und-0-value" class="text-full form-text">

hence the form name I believe has a bug... if you look closely,

other application requesting for the form id and the text field name: field_invitation_email_address[und][0][value]

seems not to recognize the entry made. you can look at the image for your reference.

http://imagebin.org/257120

meanwhile the code for generating the form is:


/**
 * Implements hook_block_view().
 *
 * @param $delta
 * @return mixed
 */
function invite_block_view($delta) {
  module_load_include('inc', 'invite', 'includes/invite.admin');

  $type = str_replace('invite_add_', '', $delta);
  $invite_type = invite_get_types($type);

  $invite = entity_create('invite', array('type' => $type));
  $block['subject'] = t('Create @name', array('@name' => entity_label('invite_type', $invite_type)));

  $block['content'] = drupal_get_form('invite_form', $invite);

  return $block;
}

can you please inspect the code in order to tell what is not right? I want to have a machine readable form name.

Comments

gumanist’s picture

Status: Needs work » Closed (works as designed)

It is working as expected.
This is standard way for Drupal to build field inputs.