You are here

function _sheetnode_sheetfield_aliases in Sheetnode 6

Same name and namespace in other branches
  1. 7.2 sheetnode.module \_sheetnode_sheetfield_aliases()
  2. 7 sheetnode.module \_sheetnode_sheetfield_aliases()

Helper function to retrieve possible sheetfield aliases.

2 calls to _sheetnode_sheetfield_aliases()
theme_sheetnode_formatter_default in ./sheetnode.module
Theme function for sheetfield default formatter.
_sheetfield_spreadsheet_process in ./sheetnode.module
Process function for sheetfield_spreadsheet element.

File

./sheetnode.module, line 813

Code

function _sheetnode_sheetfield_aliases($field_name, $widget, $value, $delta) {
  $names = array();
  $names[] = $field_name . '/' . $delta;
  if (!empty($widget['label'])) {
    $names[] = $widget['label'] . '/' . $delta;
  }
  if (!empty($value['name'])) {
    $names[] = $value['name'];
  }
  return $names;
}