function ldap_api_deactivate_server_form in Lightweight Directory Access Protocol (LDAP) 6
deactivate Server implimentation of hook_form(). Creating the actual form itself happens here.
See also
http://api.drupal.org/api/file/developer/topics/forms_api.html/6
http://api.drupal.org/api/file/developer/topics/forms_api_reference.html/6
1 string reference to 'ldap_api_deactivate_server_form'
- ldap_api_deactivate_server in ./
ldap_server.admin.inc - Page callback created in the implementation of hook_menu.
File
- ./
ldap_server.admin.inc, line 383
Code
function ldap_api_deactivate_server_form($form_state) {
$sid = $form_state['sid'];
$name = db_result(db_query("SELECT name from {ldap_servers} WHERE sid = %d", $sid));
$form['sid'] = array(
'#type' => 'hidden',
'#value' => $sid,
);
$form['text'] = array(
'#value' => t('Are you sure you want to deactivate the server %name?<br/>', array(
'%name' => $name,
)),
);
$form['deactivate'] = array(
'#type' => 'submit',
'#value' => t('Dectivate'),
);
$form['cancel'] = array(
'#type' => 'submit',
'#value' => t('Cancel'),
'#submit' => array(
'_submit_cancel',
),
);
return $form;
}