Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aprohl5/9767434 to your computer and use it in GitHub Desktop.
Save aprohl5/9767434 to your computer and use it in GitHub Desktop.
field_formatter_info_alter-variable_problems
function linked_field_field_formatter_info_alter(&$infos) {
foreach ($infos as &$info) {
// Add a settings array if no settings were found.
if (!isset($info['settings']) || !is_array($info['settings'])) {
$info['settings'] = array();
}
@aprohl5
Copy link
Author

aprohl5 commented Mar 25, 2014

everything that I am seeing in the php for each manual says I need the foreach to be two different variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment