123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <?php
- function hook_form_system_theme_settings_alter(&$form, &$form_state) {
-
- $form['toggle_breadcrumb'] = array(
- '#type' => 'checkbox',
- '#title' => t('Display the breadcrumb'),
- '#default_value' => theme_get_setting('toggle_breadcrumb'),
- '#description' => t('Show a trail of links from the homepage to the current page.'),
- );
- }
- function hook_preprocess(&$variables, $hook) {
- static $hooks;
-
- if (!user_access('access contextual links')) {
- return;
- }
- if (!isset($hooks)) {
- $hooks = theme_get_registry();
- }
-
- if (isset($hooks[$hook]['variables'])) {
- $keys = array_keys($hooks[$hook]['variables']);
- $key = $keys[0];
- }
- else {
- $key = $hooks[$hook]['render element'];
- }
- if (isset($variables[$key])) {
- $element = $variables[$key];
- }
- if (isset($element) && is_array($element) && !empty($element['#contextual_links'])) {
- $variables['title_suffix']['contextual_links'] = contextual_links_view($element);
- if (!empty($variables['title_suffix']['contextual_links'])) {
- $variables['classes_array'][] = 'contextual-links-region';
- }
- }
- }
- function hook_preprocess_HOOK(&$variables) {
-
-
- $variables['attributes']['typeof'] = array('foaf:Image');
- }
- function hook_process(&$variables, $hook) {
-
- 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));
- }
- }
- }
- function hook_process_HOOK(&$variables) {
-
-
-
-
-
- }
- function hook_themes_enabled($theme_list) {
- foreach ($theme_list as $theme) {
- block_theme_initialize($theme);
- }
- }
- function hook_themes_disabled($theme_list) {
-
- _update_cache_clear();
- }
|