You are here

function _potx_is_end_of_array in Translation template extractor 8

Same name and namespace in other branches
  1. 7.3 potx.inc \_potx_is_end_of_array()

Determines if at the end of an array.

Parameters

string $token: The token being processed.

Return value

bool TRUE is at the end of an array, FALSE if not.

1 call to _potx_is_end_of_array()
_potx_find_context in ./potx.inc
Helper to find the value for 'context' on t() and format_plural().

File

./potx.inc, line 1551
Extraction API used by the web and command line interface.

Code

function _potx_is_end_of_array($token) {
  return $token == ')' || $token == ']';
}