You are here

function feedapi_inherit_feedapi_settings_form in FeedAPI 5

Same name and namespace in other branches
  1. 6 feedapi_inherit/feedapi_inherit.module \feedapi_inherit_feedapi_settings_form()

Implementation of hook_feedapi_settings_form(). If a module provides parsers and processors it MUST evaluate the $type variable to return different forms for parsers and processors. There might be a better term for parsers and processors than $type.

File

feedapi_inherit/feedapi_inherit.module, line 59
Inherit group and taxonomy settings from feeds to news items This is an add on processor for FeedAPI

Code

function feedapi_inherit_feedapi_settings_form($type) {
  switch ($type) {
    case 'processors':
      if (module_exists('og')) {
        $form['inherit_og'] = array(
          '#type' => 'checkbox',
          '#title' => t('Feed nodes inherit organic group settings from parent feed.'),
          '#default_value' => TRUE,
        );
      }
      $form['inherit_taxonomy'] = array(
        '#type' => 'checkbox',
        '#title' => t('Feed nodes inherit taxonomy settings from parent feed.'),
        '#default_value' => TRUE,
      );
      break;
  }
  return $form;
}