function connector_user_delete_form in Connector 7
1 string reference to 'connector_user_delete_form'
- connector_menu in ./
connector.module - Implements hook_menu().
File
- ./
connector.pages.inc, line 156 - Contains all non-admin pages for the Connector module
Code
function connector_user_delete_form($form, &$form_state, $account, $cid) {
$form = array();
list($connector_name, $xuid) = explode('__', $cid);
$connector = _connector_get_connectors($connector_name);
$form['uid'] = array(
'#value' => $account->uid,
'#type' => 'value',
);
$form['cid'] = array(
'#value' => $cid,
'#type' => 'value',
);
$form['sure'] = array(
'#type' => 'markup',
'#markup' => t('Are you sure you want to remove the connection with %connector account %id?', array(
'%id' => $xuid,
'%connector' => $connector['title'],
)),
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Remove connection'),
);
return $form;
}