You are here

function linkimagefield_widget_settings_form in Link Image Field 6

Implementation of CCK's hook_widget_settings($op = 'form')

Parameters

array $widget:

Return value

array

1 call to linkimagefield_widget_settings_form()
linkimagefield_widget_settings in ./linkimagefield.module
Implementation of CCK's hook_widget_settings().

File

./linkimagefield_widget.inc, line 15
linkimagefield widget code @author John Young <john@codeandcreative.com>

Code

function linkimagefield_widget_settings_form($widget) {
  $form = module_invoke('imagefield', 'widget_settings', 'form', $widget);
  $form['url'] = array(
    '#type' => 'textfield',
    '#maxlength' => '255',
    '#title' => t('Default URL'),
    '#description' => t('Provide a well-formed URL.  This will be the default url linked to by provided images.'),
    '#default_value' => !empty($widget['url']) ? $widget['url'] : '',
  );
  return $form;
}