_drupal_rewrite_settings_is_array_index($type)
Helper for drupal_rewrite_settings().
Checks whether this token represents a valid array index: a number or a string.
int $type: The token type.
bool TRUE if this token represents a number or a string.
function _drupal_rewrite_settings_is_array_index($type) { $is_integer = $type == T_LNUMBER; $is_float = $type == T_DNUMBER; $is_string = $type == T_CONSTANT_ENCAPSED_STRING; return $is_integer || $is_float || $is_string; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!install.inc/function/_drupal_rewrite_settings_is_array_index/8.1.x