You are here

function node_gallery_api_relationship_type_delete_form in Node Gallery 7

Builds the form used to delete relationships.

1 string reference to 'node_gallery_api_relationship_type_delete_form'
node_gallery_api_menu in ./node_gallery_api.module
Implements hook_menu().

File

./node_gallery_api.admin.inc, line 442
Node Gallery API admin interface.

Code

function node_gallery_api_relationship_type_delete_form($form, $form_state, $relationship_type) {
  $form['relationship_type_id'] = array(
    '#type' => 'value',
    '#value' => $relationship_type->id,
  );
  $form['relationship_type_label'] = array(
    '#type' => 'value',
    '#value' => $relationship_type->label,
  );
  return confirm_form($form, t('Are you sure you want to delete the relationship %name?', array(
    '%name' => $relationship_type->label,
  )), 'admin/config/content/node-gallery', NULL, t('Delete'), t('Back'));
}