Commit b20ae794 authored by webchick's avatar webchick

Issue #2151821 by joelpittet, JacobSanford, jjcarrion, rteijeiro, c4rl,...

Issue #2151821 by joelpittet, JacobSanford, jjcarrion, rteijeiro, c4rl, IshaDakota, pplantinga, gnuget, longwave, jeanfei, sbudker1: Convert theme_system_config_form() to Twig
parent 9f47a874
......@@ -177,6 +177,7 @@ function system_theme() {
),
'system_config_form' => array(
'render element' => 'form',
'template' => 'system-config-form',
),
'confirm_form' => array(
'render element' => 'form',
......@@ -1706,22 +1707,6 @@ function system_block_view_system_help_block_alter(array &$build, BlockPluginInt
unset($build['#contextual_links']);
}
/**
* Returns HTML for a system settings form.
*
* By default this does not alter the appearance of a form at all,
* but is provided as a convenience for themers.
*
* @param $variables
* An associative array containing:
* - form: A render element representing the form.
*
* @ingroup themeable
*/
function theme_system_config_form($variables) {
return drupal_render_children($variables['form']);
}
/**
* Implements hook_path_update().
*/
......
{#
/**
* @file
* Default theme implementation for a system settings form.
*
* This template will be used when a system config form specifies 'config_form'
* as its #theme callback. Otherwise, by default, system config forms will be
* themed by theme_form(). This does not alter the appearance of a form at all,
* but is provided as a convenience for themers.
*
* Available variables:
* - form: The confirm form.
*
* @ingroup themeable
*/
#}
{{ form }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment