Commit 16be973d authored by alesr's avatar alesr

Issue #121: Changed form element type for check_access from select to checkbox...

Issue #121: Changed form element type for check_access from select to checkbox and changed description to match the change.
parent 0e33e397
......@@ -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;
}
......@@ -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".')
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment