function feed_import_add_filter_actions in Feed Import 7.3
Same name and namespace in other branches
- 7 feed_import.module \feed_import_add_filter_actions()
- 7.2 feed_import.module \feed_import_add_filter_actions()
Add filter button actions: add new, remove all
Parameters
string $field: Field name
Return value
array Array with buttons
1 call to feed_import_add_filter_actions()
- feed_import_edit_filter_form in ./
feed_import.module - Edit filter form
File
- ./
feed_import.module, line 1998 - User interface, cron functions for feed_import module
Code
function feed_import_add_filter_actions($field) {
return array(
'add_new_filter_' . $field => array(
'#type' => 'button',
'#value' => t('Add new filter to @field', array(
'@field' => drupal_strtoupper($field),
)),
),
'delete_selected_filters_' . $field => array(
'#type' => 'button',
'#value' => t('Remove selected from @field', array(
'@field' => drupal_strtoupper($field),
)),
),
);
}