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