You are here

function dialog_example_form_alter in Dialog 6

File

example/dialog_example.module, line 113

Code

function dialog_example_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'user_login' && !empty($form_state['ajax'])) {
    $form['submit']['#attributes']['class'] = 'ctools-dialog-button';
  }
  elseif ($form_id == 'user_register' && !empty($form_state['ajax'])) {
    $form['submit']['#attributes']['class'] = 'ctools-dialog-button';
  }
}