function panels_add_buttons in Panels 5
add the buttons to a content item
1 call to panels_add_buttons()
- panels_edit_form in ./
panels.module - Edit an already loaded panels.
File
- ./
panels.module, line 605
Code
function panels_add_buttons(&$form, $count, $position) {
$form['delete'] = panels_add_button('user-trash.png', 'delete', t('Delete this item'));
// Leaving these in but commented out as I'm not convinced we don't want them.
// if ($count > 2) {
// $form['top'] = panels_add_button('go-top.png', 'top', t('Move item to top'));
// }
if ($count > 1) {
$form['up'] = panels_add_button('go-up.png', 'up', t('Move item up'));
$form['down'] = panels_add_button('go-down.png', 'down', t('Move item down'));
}
// if ($count > 2) {
// $form['bottom'] = panels_add_button('go-bottom.png', 'bottom', t('Move item to bottom'));
// }
// if ($count > 1) {
// $form['spacer'] = panels_add_blank();
// }
return $form;
}