You are here

public static function UltimateCronPluginMultiple::defaultSettingsForm in Ultimate Cron 7.2

Default settings form.

Overrides UltimateCronPlugin::defaultSettingsForm

File

./ultimate_cron.plugin.inc, line 717
Plugin framework for Ultimate Cron.

Class

UltimateCronPluginMultiple
Class for handling multiple plugins.

Code

public static function defaultSettingsForm(&$form, &$form_state, $plugin_info) {
  $plugin_type = $plugin_info['type'];
  foreach (_ultimate_cron_plugin_load_all($plugin_type) as $name => $plugin) {
    if ($plugin
      ->isValid()) {
      $plugins[] = l($plugin->title, "admin/config/system/cron/{$plugin_type}/{$name}");
    }
  }
  $form['available'] = array(
    '#markup' => theme('item_list', array(
      'title' => $plugin_info['defaults']['static']['title plural proper'] . ' available',
      'items' => $plugins,
    )),
  );
}