function callback_my_module_summary_callback in Feeds 7.2
Returns a string for displaying the target configuration.
Callback for hook_feeds_processor_targets().
This callback is specified on the 'summary_callbacks' key of the target definition. The arguments are the same that callback_my_module_form_callback() gets.
Parameters
array $mapping: Associative array of the mapping settings.
string $target: Array of target settings, as defined by the processor or hook_feeds_processor_targets_alter().
array $form: The whole mapping form.
array $form_state: The form state of the mapping form.
Return value
string Returns, as a string that may contain HTML, the summary to display while the full form isn't visible. If the return value is empty, no summary and no option to view the form will be displayed.
See also
hook_feeds_processor_targets()
callback_my_module_form_callback()
Related topics
1 string reference to 'callback_my_module_summary_callback'
- hook_feeds_processor_targets in ./
feeds.api.php - Adds mapping targets for processors.
File
- ./
feeds.api.php, line 530 - Documentation of Feeds hooks.
Code
function callback_my_module_summary_callback(array $mapping, $target, array $form, array $form_state) {
if (empty($mapping['my_setting'])) {
return t('My setting <strong>not</strong> active');
}
else {
return t('My setting <strong>active</strong>');
}
}