protected function FeedsExQueryPathXml::configFormTableColumn in Feeds extensible parsers 7.2
Same name and namespace in other branches
- 7 src/FeedsExQueryPathXml.inc \FeedsExQueryPathXml::configFormTableColumn()
Returns a form element for a specific column.
Parameters
array &$form_state: The current form state.
string $column_name: The name of the column.
array $source: The individual source item.
Return value
array A single form element.
Overrides FeedsExXml::configFormTableColumn
File
- src/
FeedsExQueryPathXml.inc, line 120 - Contains FeedsExXml.
Class
- FeedsExQueryPathXml
- Parses XML documents with QueryPath.
Code
protected function configFormTableColumn(array &$form_state, $column_name, array $source) {
switch ($column_name) {
case 'attribute':
return array(
'#type' => 'textfield',
'#title' => t('Attribute name'),
'#title_display' => 'invisible',
'#default_value' => !empty($source['attribute']) ? $source['attribute'] : '',
'#size' => 10,
);
default:
return parent::configFormTableColumn($form_state, $column_name, $source);
}
}