You are here

function ckeditor_admin_profile_delete_form in CKEditor - WYSIWYG HTML editor 7

Same name and namespace in other branches
  1. 6 includes/ckeditor.admin.inc \ckeditor_admin_profile_delete_form()

Form builder for a profile delete

1 string reference to 'ckeditor_admin_profile_delete_form'
ckeditor_menu in ./ckeditor.module
Implementation of hook_menu().

File

includes/ckeditor.admin.inc, line 1746
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function ckeditor_admin_profile_delete_form($form, $form_state, $profile) {
  $form = array();
  $form['_profile'] = array(
    '#type' => 'value',
    '#value' => $profile,
  );
  $form['question'] = array(
    '#type' => 'item',
    '#markup' => t('Are you sure that you want to delete the CKEditor profile <strong>%profile</strong>?', array(
      '%profile' => $profile->name,
    )),
  );
  $form['delete'] = array(
    '#type' => 'submit',
    '#id' => 'delete',
    '#value' => t('Delete'),
  );
  $form['back'] = array(
    '#type' => 'submit',
    '#id' => 'back',
    '#value' => t('Cancel'),
  );
  return $form;
}