function widgets_element_delete_form in Widgets 7
Form builder; Form for deleting an widget element.
Parameters
$set: Name of the widget set from which the widget element will be removed.
$element: Name of the widget element to remove.
See also
widgets_element_delete_form_submit()
1 string reference to 'widgets_element_delete_form'
- widgets_menu in ./
widgets.module - Implements hook_menu().
File
- ./
widgets.admin.inc, line 686 - Administration pages for widget settings.
Code
function widgets_element_delete_form($form, &$form_state, $set, $element) {
$form_state['widgets_set'] = $set;
$form_state['widgets_element'] = $element;
$question = t('Are you sure you want to delete the @element element from the %set set?', array(
'%set' => $set['name'],
'@element' => $element['label'],
));
return confirm_form($form, $question, 'admin/structure/widgets/sets/edit/' . $set['name'], '', t('Delete'));
}