function certificate_sets_checks_form in Certificate 6
Form for certificate type criteria.
1 string reference to 'certificate_sets_checks_form'
- certificate_sets_checks_page in ./
certificate.admin.inc - Page to show certificate type criteria.
File
- ./
certificate.admin.inc, line 180 - Administrative pages for the module.
Code
function certificate_sets_checks_form($form_state, $type = array()) {
$form = array();
$form['table_start'] = array(
'#type' => 'markup',
'#value' => '<table>',
);
$checks = 0;
for ($i = 1; $i <= $checks + 1; $i++) {
$form['row_start'] = array(
'#type' => 'markup',
'#value' => '<tr>',
);
$form['check_type'] = array(
'#title' => 'Type',
'#description' => 'Select the criteria type.',
'#type' => 'select',
'#options' => array(
'node' => 'node',
'group' => 'group',
'profile' => 'profile',
),
'#prefix' => '<td>',
'#suffix' => '</td>',
);
module_load_include('inc', 'hs_field_selector', 'hs_field_selector');
$form['check_key'] = hs_field_selector_form_element();
$form['check_key']['#title'] = 'Criteria';
$form['check_key']['#config']['resizable'] = 0;
$form['check_key']['#prefix'] = '<td>';
$form['check_key']['#suffx'] = '</td>';
$form['check_value'] = array(
'#title' => 'Value',
'#type' => 'textfield',
'#size' => 20,
'#prefix' => '<td>',
'#suffix' => '</td>',
);
$form['type_id'] = array(
'#type' => 'hidden',
'#value' => $type->type_id,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Add',
'#prefix' => '<td><br/>',
'#suffix' => '</td>',
);
$form['row_end'] = array(
'#type' => 'markup',
'#value' => '</tr>',
);
}
$form['table_end'] = array(
'#type' => 'markup',
'#value' => '</table>',
);
return $form;
}