function lingotek_disassociate_all_form in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.5 lingotek.admin.inc \lingotek_disassociate_all_form()
- 7.6 lingotek.admin.inc \lingotek_disassociate_all_form()
1 string reference to 'lingotek_disassociate_all_form'
File
- ./
lingotek.admin.inc, line 2510
Code
function lingotek_disassociate_all_form($form, $form_state, $entity_ids = array(), $collapse_fieldset = TRUE) {
if (isset($form_state['entity_ids']) && empty($entity_ids)) {
$entity_ids = $form_state['entity_ids'];
$collapse_fieldset = FALSE;
}
$form = array();
if (!is_array($entity_ids)) {
$entity_ids = array(
$entity_ids,
);
}
$form['disassociate_all_translations'] = array(
'#type' => 'fieldset',
'#title' => t('Disassociate All Translations'),
'#collapsible' => $collapse_fieldset,
'#collapsed' => $collapse_fieldset,
);
$form['disassociate_all_translations']['submit'] = array(
'#type' => 'submit',
'#value' => t('Disassociate All Translations'),
);
return $form;
}