You are here

function swftools_profiles_settings in SWF Tools 6.3

Returns an array of variable names available for association with profiles.

2 calls to swftools_profiles_settings()
swftools_profiles_delete_confirm_submit in profiles/swftools_profiles.admin.inc
Processes profile deletion.
swftools_profiles_profile_form_submit in profiles/swftools_profiles.admin.inc
Implementation of hook_form_submit().

File

profiles/swftools_profiles.admin.inc, line 503
Configuration settings for SWF Tools profiles.

Code

function swftools_profiles_settings() {

  // Get SWF Tools methods
  $methods = swftools_get_methods();

  // Initialise an array for the results with the file handling settings
  $settings['swftools_handlers'] = 'swftools_handlers';

  // Build an array of other profile settings
  foreach ($methods as $handlers) {
    foreach ($handlers as $handler) {
      if (isset($handler['profile']['settings'])) {
        foreach ($handler['profile']['settings'] as $setting) {
          $settings[$setting] = $setting;
        }
      }
    }
  }

  // Return the results
  return $settings;
}