You are here

function paragraphs_field_get_path in Paragraphs table 7

Returns the base path to use for pargraphs items.

1 call to paragraphs_field_get_path()
paragraphs_table_menu in ./paragraphs_table.module
Implements hook_menu().

File

./paragraphs_table.module, line 521
Module file for Paragraph table module.

Code

function paragraphs_field_get_path($field) {
  if (empty($field['settings']['path'])) {
    return 'paragraphs/' . strtr($field['field_name'], array(
      '_' => '-',
    ));
  }
  return $field['settings']['path'];
}