function swftools_handling_profile_form in SWF Tools 6.3
Returns a form definition for the profile file handling page.
1 call to swftools_handling_profile_form()
- swftools_admin_handling_form in includes/
swftools.admin.inc
1 string reference to 'swftools_handling_profile_form'
- swftools_profiles_menu in profiles/
swftools_profiles.module - Implementation of hook_menu().
File
- includes/
swftools.admin.inc, line 751 - Configuration settings for SWF Tools.
Code
function swftools_handling_profile_form($profile = '') {
// Get available actions from a fresh copy
$actions = swftools_get_actions(TRUE);
// Put each option on the form
foreach ($actions as $action => $info) {
if ($form_element = _swftools_admin_file_handling_options($action, $info['#description'], $profile)) {
$form['swftools_handlers'][$action] = $form_element;
}
}
// Initialise tree as we want to store arrays
$form['swftools_handlers']['#tree'] = TRUE;
// Return finished form
return $form;
}