Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
16
vendor/chi-teck/drupal-code-generator/templates/d7/hook/process.twig
vendored
Normal file
16
vendor/chi-teck/drupal-code-generator/templates/d7/hook/process.twig
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Implements hook_process().
|
||||
*/
|
||||
function {{ machine_name }}_process(&$variables, $hook) {
|
||||
// Wraps variables in RDF wrappers.
|
||||
if (!empty($variables['rdf_template_variable_attributes_array'])) {
|
||||
foreach ($variables['rdf_template_variable_attributes_array'] as $variable_name => $attributes) {
|
||||
$context = array(
|
||||
'hook' => $hook,
|
||||
'variable_name' => $variable_name,
|
||||
'variables' => $variables,
|
||||
);
|
||||
$variables[$variable_name] = theme('rdf_template_variable_wrapper', array('content' => $variables[$variable_name], 'attributes' => $attributes, 'context' => $context));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in a new issue