Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
Issue #121: Changed form element type for check_access from select to…
Browse files Browse the repository at this point in the history
… checkbox and changed description to match the change.
  • Loading branch information
alesrebec committed Jun 23, 2016
1 parent 0e33e39 commit d2590a3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class og_context_plugin_argument_default_group_context extends views_plugin_argu
function option_definition() {
$options = parent::option_definition();
$options['group_type'] = array('default' => 'node');
$options['check_access'] = array('default' => TRUE);
$options['check_access'] = array('default' => TRUE, 'bool' => TRUE);

return $options;
}
Expand All @@ -34,11 +34,10 @@ class og_context_plugin_argument_default_group_context extends views_plugin_argu
'#description' => t('Determine what entity type that group should be of.')
);
$form['check_access'] = array(
'#type' => 'select',
'#options' => array(t('No'), t('Yes')),
'#type' => 'checkbox',
'#title' => t('Check access'),
'#description' => t('Determines if access to the group should be done. Defaults to "Checked".'),
'#default_value' => $this->options['check_access'],
'#description' => t('Determines if access to the group should be done. Defaults to "Yes".')
);
}

Expand Down

0 comments on commit d2590a3

Please sign in to comment.