You are here

function power_menu_create_machine_name in Power Menu 7.2

Creates a machine name from given string.

At the moment, it replaces all hyphens with underscores.

Parameters

$value: The string to use as machine names

Return value

The machine name

7 calls to power_menu_create_machine_name()
power_menu_add_fields_entity_fields in ./power_menu.module
Add the power menu field entity to the given form.
power_menu_entity_info in ./power_menu.module
Implements hook_entity_info().
power_menu_fields_configuration_form in ./power_menu.admin.inc
Form definition for menu fileds configuration.
power_menu_get_fields_entity in ./power_menu.module
Gets the Power Menu Fileds entity for given path
power_menu_get_fields_entity_id_by_menu in ./power_menu.module
Returns the power_menu fields entity id for given menu (menu name).

... See full list

File

./power_menu.module, line 1013

Code

function power_menu_create_machine_name($value) {
  return $value = str_replace('-', '_', $value);
}