Pull merge.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / process.twig
1 /**
2  * Implements hook_process().
3  */
4 function {{ machine_name }}_process(&$variables, $hook) {
5   // Wraps variables in RDF wrappers.
6   if (!empty($variables['rdf_template_variable_attributes_array'])) {
7     foreach ($variables['rdf_template_variable_attributes_array'] as $variable_name => $attributes) {
8       $context = array(
9         'hook' => $hook,
10         'variable_name' => $variable_name,
11         'variables' => $variables,
12       );
13       $variables[$variable_name] = theme('rdf_template_variable_wrapper', array('content' => $variables[$variable_name], 'attributes' => $attributes, 'context' => $context));
14     }
15   }
16 }