Returns HTML for a shortcut set customization form.
$variables: An associative array containing:
function theme_shortcut_set_customize($variables) {
$form = $variables['form'];
// Do not add any rows to the table if there are no shortcuts to display.
$statuses = empty($shortcuts_by_status['enabled']) && empty($shortcuts_by_status['disabled']) ? array() : array_keys($shortcuts_by_status);
$rows = array();
drupal_add_tabledrag('shortcuts', 'order', 'sibling', 'shortcut-weight');
foreach (element_children($form['shortcuts']['links']) as $key) {
$shortcut =& $form['shortcuts']['links'][$key];
$row = array();
$row[] = drupal_render($shortcut['name']);
$row[] = drupal_render($shortcut['weight']);
$row[] = drupal_render($shortcut['operations']);
$rows[] = array(
'data' => $row,
'class' => array(
'draggable',
),
);
}
$header = array(
t('Name'),
t('Weight'),
t('Operations'),
);
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
'attributes' => array(
'id' => 'shortcuts',
),
'empty' => t('No shortcuts available. <a href="@link">Add a shortcut</a>.', array(
'@link' => url('admin/config/user-interface/shortcut/' . $form['#shortcut_set_name'] . '/add-link'),
)),
));
$output .= drupal_render($form['actions']);
$output = drupal_render_children($form) . $output;
return $output;
}