You are here

function field_collection_field_name_load in Field collection 7

Menu callback for loading the bundle names.

File

./field_collection.module, line 165
Module implementing field collection field type.

Code

function field_collection_field_name_load($arg) {
  $field_name = strtr($arg, array(
    '-' => '_',
  ));
  if (($field = field_info_field($field_name)) && $field['type'] === 'field_collection') {
    return $field_name;
  }
}