im want to 3 radio buttons and user select a one save it in data base and i use following code but it gives error like this
Notice: Undefined variable: admin in ounces_to_ml_form() (line 44 of C:\xampp\htdocs\drupal7\sites\all\modules\ounces_to_ml\ounces_to_ml.module).
Notice: Undefined variable: admin in ounces_to_ml_form() (line 54 of C:\xampp\htdocs\drupal7\sites\all\modules\ounces_to_ml\ounces_to_ml.module).
Notice: Undefined variable: admin in ounces_to_ml_form() (line 64 of C:\xampp\htdocs\drupal7\sites\all\modules\ounces_to_ml\ounces_to_ml.module).
$active = array(0 => t('Closed'), 1 => t('Active'));
$form['settings']['active'] = array(
'#type' => 'radio',
'#title' => t('every time'),
'#default_value' => isset($node->active) ? $node->active : 1,
'#options' => $active,
'#description' => t('Instantly: Emailed every time a donor submits a donation'),
'#access' => $admin,
);
//////////////////////
//////radio 02 /////////
$form['settings']['active1'] = array(
'#type' => 'radio',
'#title' => t('once a day'),
'#default_value' => isset($node->active) ? $node->active : 1,
'#options' => $active,
'#description' => t(' Email once a day'),
'#access' => $admin,
);
//////////////////////
//////radio 03 /////////
$form['settings']['active2'] = array(
'#type' => 'radio',
'#title' => t('at given time'),
'#default_value' => isset($node->active) ? $node->active : 1,
'#options' => $active,
'#description' => t('Email a day'),
'#access' => $admin,
);
//////////////////////
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('save'),
);
return $form;
i want to know what is the error and what is mean by '#access' => $admin code line
