Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. // Adiciona pelo ajax
  2.  $output['field']['codigo'] = array(
  3.             '#type' => 'select',
  4.             '#title' => t('valores:'),
  5.             '#options' => $select_cred,
  6.             '#attributes' => array(
  7.                 'class' => array('form-control'),
  8.             ),
  9.             '#required' => TRUE,
  10.         );
  11.  
  12.   $output['field']['submit'] = array(
  13.             '#type' => 'submit',
  14.             '#value' => t('adicionar'),
  15.             '#attributes' => array(
  16.                 'class' => array('btn-success'),
  17.             ),
  18.         );
  19.  
  20.     $commands[] = ajax_command_replace('#detalhes_franq', drupal_render($output));  
  21.     return array(
  22.         '#type' => 'ajax',
  23.         '#commands' => $commands,
  24.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement