You are here

function extractConfigPermissionByDisplay in Form Mode Control 8

Parameters

$configurations:

Return value

array

1 call to extractConfigPermissionByDisplay()
getPermissionByModeAndRole in ./form_mode_control.module

File

./form_mode_control.module, line 62

Code

function extractConfigPermissionByDisplay($configurations) {
  $configuration_form_state = array();
  foreach ($configurations as $permission => $form_state_key) {
    if (substr_count($permission, "linked to") != 0) {
      $configuration_form_state[$form_state_key] = $permission;
    }
  }
  return $configuration_form_state;
}