Mensaje de error

Warning: count(): Parameter must be an array or an object that implements Countable en _api_make_match_member_link() (línea 1230 de /home/u295177857/domains/app01.inkastattoonewjersey.com/public_html/profiles/drupalapi/modules/contrib/api/api.formatting.inc).

function entity_cache_test_watchdog

Implements hook_watchdog().

This hook is called during module_enable() and since this hook implementation is invoked, we have to expect that this module and dependent modules have been properly installed already. So we expect to be able to retrieve the entity information that has been registered by the required dependency module.

See also

EnableDisableTestCase::testEntityCache()

entity_cache_test_dependency_entity_info()

Archivo

drupal-7.x/modules/simpletest/tests/entity_cache_test.module, line 20
Helper module for entity cache tests.

Código

function entity_cache_test_watchdog($log_entry) {
  if ($log_entry['type'] == 'system' && $log_entry['message'] == '%module module installed.') {
    $info = entity_get_info('entity_cache_test');
    // Store the information in a system variable to analyze it later in the
    // test case.
    variable_set('entity_cache_test', $info);
  }
}