You are here

public function FlexiformBuilder::replaceCtoolsSubstitutions in Flexiform 7

Replace ctools substitutions with their values.

Parameters

string $string: The string we want to replace in.

array $keywords: Optionally provide additional keywords to replace.

Return value

string $string with it's substitutions replaced.

1 call to FlexiformBuilder::replaceCtoolsSubstitutions()
FlexiformBuilder::formSubmitRedirect in includes/flexiform.builder.inc
Submit the form and set up the redirect.

File

includes/flexiform.builder.inc, line 197
Specify builder classes for flexiforms.

Class

FlexiformBuilder
Base class for flexiform builders.

Code

public function replaceCtoolsSubstitutions($string, $keywords = array()) {
  $contexts = $this
    ->getCtoolsContexts();
  return ctools_context_keyword_substitute($string, $keywords, $contexts);
}