You are here

function panels_image_add in Image 5.2

Returns the form for a new image.

1 string reference to 'panels_image_add'
image_image_panels_content_types in content_types/image.inc
Callback function to supply a list of content types.

File

content_types/image.inc, line 76

Code

function panels_image_add($id, $parents, $conf = array()) {
  $form = panels_image_edit($id, $parents, $conf);
  $form['nid'] = array(
    '#prefix' => '<div class="no-float">',
    '#suffix' => '</div>',
    '#title' => t('Enter the title or NID of an image'),
    '#type' => 'textfield',
    '#maxlength' => 512,
    '#autocomplete_path' => 'panels/node/autocomplete',
    '#weight' => -10,
  );
  $form['validate_me'] = array(
    '#type' => 'value',
    '#value' => TRUE,
  );
  return $form;
}