You are here

function _themekey_node_callback in ThemeKey 7

Same name and namespace in other branches
  1. 6.4 modules/themekey.node.inc \_themekey_node_callback()
  2. 6 modules/themekey.node.inc \_themekey_node_callback()
  3. 6.2 modules/themekey.node.inc \_themekey_node_callback()
  4. 6.3 modules/themekey.node.inc \_themekey_node_callback()
  5. 7.3 modules/themekey.node.inc \_themekey_node_callback()
  6. 7.2 modules/themekey.node.inc \_themekey_node_callback()

This function isn't needed anymore and has been removed with ThemeKey 6.x-2.0-beta2. But if it's missing a fatal error occurs if you upgrade from any version before 6.x-2.0-beta2 until you call update.php. That should be avoided. So this function is available again and does nothing else than reminding the administrator to call update.php

see http://drupal.org/node/662786

Parameters

unknown_type $item:

unknown_type $parameters:

Return value

unknown_type

File

modules/themekey.node.inc, line 494
Provides some node attributes as ThemeKey properties.

Code

function _themekey_node_callback(&$item, &$parameters) {
  global $user;
  if (1 == $user->uid) {
    drupal_set_message(filter_xss(t('You uploaded a new version of ThemeKey. Please !link your site!', array(
      '!link' => l(t('update'), '/update.php'),
    ))));
  }
}