function iframe_field_widget_info in Iframe 7
Implements hook_field_widget_info(). shows the "Widget" select for this special field type on the manage-fields page of content-type The type of form element you would like to present to the user when creating this field in the test type. (Step 1)
File
- ./
iframe.module, line 590 - Defines an iframe field with all attributes.
Code
function iframe_field_widget_info() {
return array(
'iframe_widget_url' => array(
'label' => t('URL only'),
'field types' => array(
'iframe',
),
'settings' => array(
'size' => 255,
),
'weight' => 1,
),
'iframe_widget_urlheight' => array(
'label' => t('URL with height'),
'field types' => array(
'iframe',
),
'settings' => array(
'size' => 255,
),
'weight' => 2,
),
'iframe_widget_urlwidthheight' => array(
'label' => t('URL with width and height'),
'field types' => array(
'iframe',
),
'settings' => array(
'size' => 255,
),
'weight' => 3,
),
);
}