function token_custom_features_config_get_machinename in Custom Tokens 7.2
Get machine name specific data.
Parameters
string $name: Machine name from token_custom table.
Return value
array An associative array.
2 calls to token_custom_features_config_get_machinename()
- token_custom_features_export_render in ./
token_custom.features.inc - Implements hook_features_export_render().
- token_custom_features_rebuild in ./
token_custom.features.inc - Implements hook_features_rebuild().
File
- ./
token_custom.features.inc, line 102 - Features integration for the Custom tokens module.
Code
function token_custom_features_config_get_machinename($name) {
$codes = db_select('token_custom', 'tc')
->fields('tc', array())
->condition('machine_name', $name)
->execute();
return $codes
->fetchAssoc();
}