X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fctools-plugin%2Fcontent-type.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fctools-plugin%2Fcontent-type.twig;h=26a53b973f6a1f82468bebd7b172cbd5541c05c8;hp=138e99467496ddc0efad66374fcf77f164943213;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/ctools-plugin/content-type.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/ctools-plugin/content-type.twig index 138e99467..26a53b973 100644 --- a/vendor/chi-teck/drupal-code-generator/templates/d7/ctools-plugin/content-type.twig +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/ctools-plugin/content-type.twig @@ -13,7 +13,7 @@ $plugin = array( 'title' => t('{{ plugin_name }}'), 'description' => t('{{ description }}'), {% if context == 'Node' or context == 'User' %} - 'required context' => new ctools_context_required(t('{{ context }}'), '{{ context | lower }}'), + 'required context' => new ctools_context_required(t('{{ context }}'), '{{ context|lower }}'), {% elseif context == 'Term' %} 'required context' => new ctools_context_required(t('{{ context }}'), array('term', 'taxonomy_term')), {% endif %} @@ -33,7 +33,7 @@ function {{ machine_name }}_{{ plugin_machine_name }}_content_type_render($subty {% endif %} {% if context == 'Node' or context == 'Term' %} - ${{ context | lower }} = clone $context->data; + ${{ context|lower }} = clone $context->data; {% elseif context == 'User' %} {# Use $account variable to avoid confusion with the global $user object #} $account = clone $context->data;