function feedapi_inherit_feedapi_settings_form in FeedAPI 6
Same name and namespace in other branches
- 5 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 63 - Inherit group language and taxonomy settings from feeds to news items This is an add on processor for FeedAPI
Code
function feedapi_inherit_feedapi_settings_form($type) {
$form = array();
switch ($type) {
case 'processors':
if (module_exists('og')) {
$form['inherit_og'] = array(
'#type' => 'checkbox',
'#title' => t('Feed item nodes inherit organic group settings from parent feed.'),
'#default_value' => TRUE,
);
}
if (module_exists('translation')) {
$form['inherit_language'] = array(
'#type' => 'checkbox',
'#title' => t('Feed nodes inherit language settings from parent feed.'),
'#default_value' => TRUE,
);
}
$form['inherit_taxonomy'] = array(
'#type' => 'checkbox',
'#title' => t('Feed item nodes inherit taxonomy settings from parent feed.'),
'#default_value' => TRUE,
);
$form['inherit_author'] = array(
'#type' => 'checkbox',
'#title' => t('Feed item nodes will be authored by the same user as the parent feed.'),
'#default_value' => TRUE,
);
break;
}
return $form;
}