You are here

function path_breadcrumbs_delete_form in Path Breadcrumbs 7

Form for removing path breadcrumbs from database.

1 string reference to 'path_breadcrumbs_delete_form'
path_breadcrumbs_menu in ./path_breadcrumbs.module
Implements hook_menu().

File

./path_breadcrumbs.module, line 220

Code

function path_breadcrumbs_delete_form($form, $form_state, $path_breadcrumbs) {
  $form['path_id'] = array(
    '#type' => 'value',
    '#value' => $path_breadcrumbs->path_id,
  );
  $form['message']['#markup'] = t('Are you sure that you want to delete %name from database?', array(
    '%name' => $path_breadcrumbs->name,
  ));
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  $form['actions']['cancel'] = array(
    '#type' => 'submit',
    '#value' => t('Cancel'),
  );
  return $form;
}