You are here

protected function FeedsExXml::configFormTableColumn in Feeds extensible parsers 7.2

Same name and namespace in other branches
  1. 7 src/FeedsExXml.inc \FeedsExXml::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 FeedsExBase::configFormTableColumn

1 call to FeedsExXml::configFormTableColumn()
FeedsExQueryPathXml::configFormTableColumn in src/FeedsExQueryPathXml.inc
Returns a form element for a specific column.
1 method overrides FeedsExXml::configFormTableColumn()
FeedsExQueryPathXml::configFormTableColumn in src/FeedsExQueryPathXml.inc
Returns a form element for a specific column.

File

src/FeedsExXml.inc, line 140
Contains FeedsExXml.

Class

FeedsExXml
Parses XML documents with XPath.

Code

protected function configFormTableColumn(array &$form_state, $column_name, array $source) {
  switch ($column_name) {
    case 'raw':
      return array(
        '#type' => 'checkbox',
        '#title' => t('Raw value'),
        '#title_display' => 'invisible',
        '#default_value' => !empty($source['raw']) ? $source['raw'] : 0,
      );
  }
}