function theme_flag_actions_flag_form in Flag 6
Same name and namespace in other branches
- 5 flag_actions.module \theme_flag_actions_flag_form()
- 6.2 flag_actions.module \theme_flag_actions_flag_form()
- 7.3 flag_actions.module \theme_flag_actions_flag_form()
- 7.2 flag_actions.module \theme_flag_actions_flag_form()
1 theme call to theme_flag_actions_flag_form()
- flag_actions_form in ./
flag_actions.module - Generic configuration form for configuration of flag actions.
File
- ./
flag_actions.module, line 494 - Actions support for the Flag module.
Code
function theme_flag_actions_flag_form($form) {
$event = drupal_render($form['event']);
$threshold = drupal_render($form['threshold']);
$action = $form['#action']->description;
$output = '';
$output .= '<div class="container-inline">';
$output .= t('Perform action when content !event !threshold flags', array(
'!event' => $event,
'!threshold' => $threshold,
));
$output .= '</div>';
$element = array(
'#title' => t('Flagging threshold'),
'#description' => t('Set the event for which this action should be executed.'),
'#required' => TRUE,
);
$output = theme('form_element', $element, $output);
return $output . drupal_render($form);
}