Created
June 1, 2015 18:22
-
-
Save pixel5/695895f3ee33c34c7d80 to your computer and use it in GitHub Desktop.
input-group example form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function inputgroup_example_form($form,&$form_state) { | |
$form = array(); | |
$form['i'] = array( | |
'#type' => 'textfield', | |
'#attributes' => array( | |
'placeholder' => 'input-groups in drupal!', | |
), | |
'#input_group' => TRUE, | |
'#field_prefix' => "</>", | |
); | |
return $form; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment