You are here

public function FlexiformElement::replaceCtoolsSubstitutions in Flexiform 7

Replace ctools substitutions with their values.

Parameters

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

array $entities: An array of entities keyed by namespace. If NULL, placeholder contexts will be used.

array $keywords: Optionally provide additional keywords to replace.

Return value

string $string with it's substitutions replaced.

8 calls to FlexiformElement::replaceCtoolsSubstitutions()
FlexiformElementCustomHtml::form in includes/element/custom_html.element.inc
Returns the custom html that is defined in the configure form.
FlexiformElementEntityProperty::form in includes/element/property.element.inc
Return the form element for this FlexiformElement.
FlexiformElementField::form in includes/element/field.element.inc
Return the form element for this FlexiformElement.
FlexiformElementNodeAuthor::form in includes/element/node_author.element.inc
Return the form element for this FlexiformElement.
FlexiformElementNodeTitle::form in includes/element/node_title.element.inc
Return the form element for this FlexiformElement.

... See full list

File

includes/flexiform.element.inc, line 411
Controller class for flexiform elements.

Class

FlexiformElement
Base class for all FlexiformElements

Code

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