function theme_flag_actions_add_form in Flag 7.2
Same name and namespace in other branches
- 5 flag_actions.module \theme_flag_actions_add_form()
- 6.2 flag_actions.module \theme_flag_actions_add_form()
- 6 flag_actions.module \theme_flag_actions_add_form()
- 7.3 flag_actions.module \theme_flag_actions_add_form()
File
- ./flag_actions.module, line 368 
- Actions support for the Flag module.
Code
function theme_flag_actions_add_form($variables) {
  $form = $variables['form'];
  $fieldset = array(
    '#type' => 'fieldset',
    '#title' => t('Add a new flag action'),
    '#children' => '<div class="container-inline">' . drupal_render($form['flag']) . drupal_render($form['submit']) . '</div>',
    '#parents' => array(
      'add_action',
    ),
    '#attributes' => array(),
    '#groups' => array(
      'add_action' => array(),
    ),
  );
  return drupal_render($fieldset) . drupal_render_children($form);
}