You are here

function _emfield_field_submit_id in Embedded Media Field 5

Same name and namespace in other branches
  1. 6.3 deprecated/emfield-deprecated.inc \_emfield_field_submit_id()
  2. 6 emfield.module \_emfield_field_submit_id()
  3. 6.2 emfield.module \_emfield_field_submit_id()

replace embedded code with the extracted id. this goes in the field 'value' also allows you to grab directly from the URL to display the content from field 'provider'

2 calls to _emfield_field_submit_id()
emfield_emfield_field in ./emfield.module
Implementation of hook_emfield_field *
_emfield_field_validate_id in ./emfield.module
extract the id from embedded code or url

File

./emfield.module, line 309

Code

function _emfield_field_submit_id($field, $item, $module) {

  //  $module = $field['widget']['helper_module'];
  $item = array_merge($item, emfield_parse_embed($field, $item['embed'], $module));
  $item['data'] = (array) emfield_include_invoke($module, $item['provider'], 'data', $field, $item);
  return $item;
}