You are here

function paragraphs_field_item_to_ids in Paragraphs 7

Get an array of paragraph item IDs stored in the given field items.

2 calls to paragraphs_field_item_to_ids()
paragraphs_field_delete in ./paragraphs.module
Implements hook_field_delete().
paragraphs_field_update in ./paragraphs.module
Implements hook_field_update().

File

./paragraphs.module, line 849
Paragraphs hooks and common functions.

Code

function paragraphs_field_item_to_ids($items) {
  $ids = array();
  foreach ($items as $item) {
    if (!empty($item['value'])) {
      $ids[] = $item['value'];
    }
  }
  return $ids;
}