You are here

function ultimate_cron_plugin_form in Ultimate Cron 7.2

Main plugin settings form.

1 string reference to 'ultimate_cron_plugin_form'
ultimate_cron_menu in ./ultimate_cron.module
Implements hook_menu().

File

./ultimate_cron.admin.inc, line 10
Ultimate Cron!

Code

function ultimate_cron_plugin_form($form, &$form_state, $plugin_type) {
  ctools_include('plugins');
  $plugin_types = ctools_plugin_get_plugin_type_info();
  $plugin_info = $plugin_types['ultimate_cron'][$plugin_type];
  $static = $plugin_info['defaults']['static'];
  $class = $static['class'];
  $class::defaultSettingsForm($form, $form_state, $plugin_info);
  if (!empty($form['#submit'])) {
    array_push($form['#submit'], 'ultimate_cron_plugin_settings_clear_cache');
  }
  return $form;
}