Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Adiciona pelo ajax
- $output['field']['codigo'] = array(
- '#type' => 'select',
- '#title' => t('valores:'),
- '#options' => $select_cred,
- '#attributes' => array(
- 'class' => array('form-control'),
- ),
- '#required' => TRUE,
- );
- $output['field']['submit'] = array(
- '#type' => 'submit',
- '#value' => t('adicionar'),
- '#attributes' => array(
- 'class' => array('btn-success'),
- ),
- );
- $commands[] = ajax_command_replace('#detalhes_franq', drupal_render($output));
- return array(
- '#type' => 'ajax',
- '#commands' => $commands,
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement