You are here

function flag_comment::options_form in Flag 5

Same name and namespace in other branches
  1. 6.2 flag.inc \flag_comment::options_form()
  2. 6 flag.inc \flag_comment::options_form()
  3. 7.3 includes/flag/flag_comment.inc \flag_comment::options_form()
  4. 7.2 flag.inc \flag_comment::options_form()

File

./flag.inc, line 989
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_comment
Implements a comment flag.

Code

function options_form(&$form) {
  parent::options_form($form);
  $form['display']['show_on_comment'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display link under comment'),
    '#default_value' => $this->show_on_comment,
    '#access' => empty($this->locked['show_on_comment']),
  );
}