function _panels_sections_delete_confirm in Panels Sections 6.2
Same name and namespace in other branches
- 6 panels_sections.module \_panels_sections_delete_confirm()
confirm the deletion of a section
Parameters
$form_state:
object $section:
1 string reference to '_panels_sections_delete_confirm'
- _panels_sections_delete in ./
panels_sections.module - delete a section
File
- ./
panels_sections.module, line 255 - Allows you to define panels_sections of your site and apply s to those panels_sections.
Code
function _panels_sections_delete_confirm(&$form_state, $section) {
return confirm_form(array(), t('Delete section %name', array(
'%name' => $section->name,
)), 'admin/panels/panels_sections', '<p>' . t('Are you sure you want to delete the section %name?', array(
'%name' => $section->name,
)) . '</p>', t('Delete'), t('Cancel'));
}