Thank you pupi for your answer. Could you please help me what would be the source to display permit_point here:
public function admin_form(&$qa_content)
{
require_once QA_INCLUDE_DIR.'qa-app-admin.php';
require_once QA_INCLUDE_DIR.'qa-app-options.php';
$permitoptions=qa_admin_permit_options(QA_PERMIT_ALL, QA_PERMIT_SUPERS, false, true);
$saved=false;
if (qa_clicked('my_plugin_save_button')) {
qa_opt('my_plugin_permit', qa_post_text('my_plugin_permit_field'));
qa_opt('permit_point_needed', qa_post_text('permit_point_needed_field'));
$saved=true;
}
qa_set_display_rules($qa_content, array(
'permit_point' => ????????????????
));
return array(
'ok' => $saved ? 'Settings saved' : null,
'fields' => array(
array(
'label' => 'set permission:',
'type' => 'select',
'value' => @$permitoptions[qa_opt('my_plugin_permit')],
'options' => $permitoptions,
'tags' => 'NAME="my_plugin_permit_field" id="my_plugin_permit_field"',
),
array(
'id' => 'permit_point',
'label' => 'required point:',
'type' => 'number',
'value' => (int)qa_opt('permit_point_needed'),
'suffix' => 'points',
'tags' => 'NAME="permit_point_needed_field" id="permit_point_needed_field"',
),
),
'buttons' => array(
array(
'label' => 'Save Changes',
'tags' => 'NAME="my_plugin_save_button"',
),
),
);
}