You are here

function view_custom_table_delete_custom_table_to_view_form in Views Custom Table 7

Function to implement delete custom table form.

1 string reference to 'view_custom_table_delete_custom_table_to_view_form'
view_custom_table_delete_custom_table_to_view_callback in ./view_custom_table.admin.inc
Function to delete a custom table form views.

File

./view_custom_table.admin.inc, line 538
File for administrative functions.

Code

function view_custom_table_delete_custom_table_to_view_form($form, &$form_state, $table_name) {
  $form = array();
  $form['message'] = array(
    '#markup' => '<p>' . t('Do you want to delete custom view table "@table_name" ?', array(
      '@table_name' => $table_name,
    )) . '</p>',
  );
  $form_state['table_name'] = $table_name;
  $form['actions']['delete'] = array(
    '#type' => 'submit',
    '#value' => t('Delete'),
  );
  $form['actions']['cancel'] = array(
    '#markup' => l(t('Cancel'), 'admin/structure/views/custom_table'),
  );
  return $form;
}