function flag_comment::options_form in Flag 7.3
Same name and namespace in other branches
- 5 flag.inc \flag_comment::options_form()
- 6.2 flag.inc \flag_comment::options_form()
- 6 flag.inc \flag_comment::options_form()
- 7.2 flag.inc \flag_comment::options_form()
Options form extras for comment flags.
Overrides flag_entity::options_form
File
- includes/
flag/ flag_comment.inc, line 23 - Contains the flag_comment class.
Class
- flag_comment
- Implements a comment flag.
Code
function options_form(&$form) {
parent::options_form($form);
$form['access']['access_author'] = array(
'#type' => 'radios',
'#title' => t('Flag access by content authorship'),
'#options' => array(
'' => t('No additional restrictions'),
'comment_own' => t('Users may only flag own comments'),
'comment_others' => t('Users may only flag comments by others'),
'node_own' => t('Users may only flag comments of nodes they own'),
'node_others' => t('Users may only flag comments of nodes by others'),
),
'#default_value' => $this->access_author,
'#description' => t("Restrict access to this flag based on the user's ownership of the content. Users must also have access to the flag through the role settings."),
);
}