You are here

function emimport_emfield_widget_settings_extra in Embedded Media Field 5

File

contrib/emimport/emimport.module, line 295

Code

function emimport_emfield_widget_settings_extra($op, $widget) {
  switch ($op) {
    case 'form':
      emimport_types_allowing_import(FALSE);
      $form = array();
      $form['emimport'] = array(
        '#type' => 'fieldset',
        '#title' => t('Embedded Media Import'),
        '#collapsible' => TRUE,
        '#collapsed' => FALSE,
      );
      $form['emimport']['emimport'] = array(
        '#type' => 'checkbox',
        '#title' => t('Allow set import into this field'),
        '#description' => t('If checked, then as otherwise allowed, sets from allowed providers may be imported into this field, creating new nodes as needed.'),
        '#default_value' => isset($widget['emimport']) ? $widget['emimport'] : TRUE,
      );
      return $form;
    case 'save':
      return array(
        'emimport',
      );
  }
}