1 path.admin.inc theme_path_bulk_update_form($variables)

Returns HTML for the Path bulk update page.

Parameters

$variables: An associative array containing:

  • form: A render element representing the form.

Related topics

File

core/modules/path/path.admin.inc, line 738
Admin page callbacks for the Path module.

Code

function theme_path_bulk_update_form($variables) {
  backdrop_add_css(backdrop_get_path('module', 'path') . '/css/path.admin.css');
  backdrop_add_js(backdrop_get_path('module', 'path') . '/js/path.admin.js');
  $form = $variables['form'];

  foreach (element_children($form['update']) as $base) {
    foreach (element_children($form['update'][$base]) as $key) {
      $row = array();
      $row[] = array(
        'data' => backdrop_render($form['update'][$base][$key]),
        'class' => array('path-alias-generate'),
      );
      $rows[] = $row;
    }
  }
  $header = array(
    'alias' => array('data' => t('All URL aliases'), 'class' => 'path-alias-generate'),
  );

  $output = '';
  $output .= backdrop_render($form['operations']);
  $output .= theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'path-bulk-alias')));
  $output .= backdrop_render_children($form);
  return $output;
}