function feeds_excel_token_list in Feeds Excel 6
Implementation of hook_token_list().
File
- ./
feeds_excel.module, line 94
Code
function feeds_excel_token_list($type = 'all') {
$tokens = array();
if ($type == 'excel_file' || $type == 'all') {
$tokens['excel']['excel-filepath'] = t("The path the excel file is located.");
$tokens['excel']['excel-fileurl'] = t("The absolute url the excel file is located.");
}
if ($type == 'excel_sheet' || $type == 'all') {
$tokens['excel_sheet']['sheet-id'] = t("Id of the sheet within the excel file.");
$tokens['excel_sheet']['sheet-name-raw'] = t('Sheet name - raw user imput');
$tokens['excel_sheet']['sheet-name'] = t('Sheet name');
$tokens['excel_sheet']['sheet-cell-1-1-raw'] = t('Raw data of the given cell within the sheet.');
$tokens['excel_sheet']['sheet-cell-1-1'] = t('Formatted string of the given cell within the sheet.');
}
if ($type == 'excel_row' || $type == 'all') {
$tokens['excel-row']['row'] = t('Number of row.');
//$tokens['excel-row']['cells'] = t('Number of cells in row item.');
$tokens['excel-row']['range-id'] = t('ID of the define Range of config "iterative"');
$tokens['excel-row']['column-offset'] = t('Column offset of row item.');
$tokens['excel-row']['column-1-raw'] = t('Raw data out of given column (1) in current range\'s row.');
$tokens['excel-row']['column-1'] = t('Formatted data out of given column (1) in current range\'s row.');
$tokens['excel-row']['x-1-raw'] = t('Raw data of cell with given position (1 for first cell) in row.');
$tokens['excel-row']['x-1'] = t('Formatted data of cell with given position (1 for first cell) in row.');
}
if ($type == 'excel_column' || $type == 'all') {
$tokens['excel-column']['row-1-raw'] = t('Raw data out of given column in current range\'s column.');
$tokens['excel-column']['row-1'] = t('Formatted data out of given column in current range\'s column.');
$tokens['excel-column']['y-1-raw'] = t('Raw data of cell with given position in item (1 for first cell in column).');
$tokens['excel-column']['y-1'] = t('Formatted data of cell with given position in item (1 for first cell in column).');
$tokens['excel-column']['column'] = t('Number of column.');
$tokens['excel-column']['column-alpha'] = t('Alpha value of column.');
//$tokens['excel-column']['cells'] = t('Number of cells in column item.');
$tokens['excel-column']['row-offset'] = t('Row offset of column item.');
}
return $tokens;
}