public function DeployAggregatorViews::configForm in Deploy - Content Staging 7.3
Same name and namespace in other branches
- 7.2 modules/deploy_aggregator_views/plugins/DeployAggregatorViews.inc \DeployAggregatorViews::configForm()
Defines the configuration form for the aggregator.
Parameters
array $form_state: The complete form state.
Return value
array An array representing the configuation form.
Overrides DeployAggregatorBase::configForm
File
- modules/deploy_aggregator_views/ plugins/ DeployAggregatorViews.inc, line 57 
- Views based aggregator for deployment plan entities.
Class
- DeployAggregatorViews
- Class for a deploy aggregator that aggregates entities using a View.
Code
public function configForm(&$form_state) {
  $form = array();
  $options = array();
  $views = views_get_enabled_views();
  foreach ($views as $view_name => $view) {
    $options[$view_name] = !empty($view->human_name) ? $view->human_name : $view->name;
  }
  $form['view_name'] = array(
    '#type' => 'select',
    '#title' => t('View'),
    '#description' => t('Select the view that is going to provide this deployment plan with content.'),
    '#options' => $options,
    '#default_value' => $this->config['view_name'],
  );
  return $form;
}