You are here

function node_gallery_relationship_delete_form in Node Gallery 6.3

Builds the form used to delete relationships.

Parameters

$form_state:

$relationship: The relationship array.

Return value

A confirmation form.

1 string reference to 'node_gallery_relationship_delete_form'
node_gallery_menu in ./node_gallery.module
Implements hook_menu().

File

./node_gallery.admin.inc, line 541

Code

function node_gallery_relationship_delete_form($form_state, $relationship) {
  $form['rid'] = array(
    '#type' => 'value',
    '#value' => $relationship['rid'],
  );
  $form['relationship_name'] = array(
    '#type' => 'value',
    '#value' => $relationship['settings']['name'],
  );
  return confirm_form($form, t('Are you sure you want to delete the relationship %name?', array(
    '%name' => $relationship['settings']['name'],
  )), 'admin/settings/node_gallery', NULL, t('Delete'), t('Back'));
}