function lingotek_clear_exceptions_form in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.6 lingotek.module \lingotek_clear_exceptions_form()
1 string reference to 'lingotek_clear_exceptions_form'
File
- ./
lingotek.module, line 2413
Code
function lingotek_clear_exceptions_form($form, $form_state) {
$profile_options = lingotek_get_profiles_by_name();
$content_type = $form_state['bundle_name'];
$entity_profiles = variable_get('lingotek_entity_profiles');
$profile_index = $entity_profiles['node'][$content_type];
$profile = $profile_options[$profile_index];
$form['clear_exceptions'] = array(
'#type' => 'fieldset',
'#title' => t('Clear Profile Exceptions'),
'#description' => t("This will apply the selected profile (" . $profile . ") to all " . $content_type . " nodes that have previously been configured independent of the rest of their content type. Note: some settings may remain different such as vault, project, workflow, and translation method (node-based/field-based)."),
);
$form['clear_exceptions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
$form['bundle_name'] = array(
'#type' => 'hidden',
'#value' => $content_type,
);
return $form;
}