You are here

function oauthconnector_field_delete_form in OAuth Connector 7

1 string reference to 'oauthconnector_field_delete_form'
oauthconnector_menu in ./oauthconnector.module
Implements hook_menu().

File

./oauthconnector.admin.inc, line 927
Administrative functions for the OAuth Connector module.

Code

function oauthconnector_field_delete_form($form, &$form_state, $field_name = '') {
  $field = oauthconnector_fields($field_name);
  $form['name'] = array(
    '#type' => 'value',
    '#value' => $field_name,
  );
  $form['message'] = array(
    '#type' => 'markup',
    '#markup' => t('Are you sure you want to delete %name?', array(
      '%name' => $field['title'],
    )),
  );
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Delete field'),
  );
  return $form;
}