You are here

function image_ncck_embed_form in Embedded Media Field 5

1 string reference to 'image_ncck_embed_form'
theme_image_ncck_image_embed in contrib/image_ncck/image_ncck.module

File

contrib/image_ncck/image_ncck.module, line 286

Code

function image_ncck_embed_form($field, $item, $formatter, $node) {
  $embed = $item['value'];
  $width = $field['widget']['full_width'];
  $height = $field['widget']['full_height'];
  $text = module_invoke('emfield', 'include_invoke', 'image_ncck', $item['provider'], 'image_full', $embed, $width, $height, $field, $item);
  $form = array();
  $form['image_ncck_embed'] = array(
    '#type' => 'textarea',
    '#title' => t('Embed Code'),
    '#description' => t('To embed this image on your own site, simply copy and paste the html code from this text area.'),
    '#default_value' => $text,
  );
  return $form;
}