You are here

function empty_fields_generate_field_name in Empty fields 7.2

Utility: generate a field id to be used in the display of the plugin's form.

Parameters

string $field_id: The id of the field as specified in the plugin.

string $class_name: The configured emptyFieldHandler for the field instance.

Return value

string The id of the field as displayed to the user.

3 calls to empty_fields_generate_field_name()
empty_fields_field_formatter_info_alter in ./empty_fields.module
Implements hook_field_formatter_info_alter().
empty_fields_field_formatter_settings_form_alter in ./empty_fields.module
Implements hook_field_formatter_settings_form_alter().
empty_fields_load_plugin in ./empty_fields.module
Loads a plugin from static cache if available.

File

./empty_fields.module, line 69
Contains the implementation for the empty_fields module.

Code

function empty_fields_generate_field_name($field_id, $class_name) {
  return 'empty_fields_' . drupal_strtolower($class_name) . '_' . $field_id;
}