You are here

function test_ctools_page_callback_token in Chaos Tool Suite (ctools) 7

Parameters

$elements:

Return value

string

1 string reference to 'test_ctools_page_callback_token'
CtoolsPageTokens::testReplaceCallbackToken in tests/page_tokens.test
Test that we can set page tokens.

File

tests/page_tokens.test, line 128
Tests for different parts of the ctools object caching system.

Code

function test_ctools_page_callback_token($elements) {

  // Check that 'elements' array looks good.
  if (isset($elements['content'])) {
    return '<h2>Title</h2>';
  }
  else {
    return '<!--bad-->';
  }
}