Closed (works as designed)
Project:
Invite
Version:
7.x-4.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2013 at 22:11 UTC
Updated:
5 Jun 2013 at 20:42 UTC
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.
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
Comment #1
gumanist commentedIt is working as expected.
This is standard way for Drupal to build field inputs.