Created
March 25, 2014 17:56
-
-
Save aprohl5/9767434 to your computer and use it in GitHub Desktop.
field_formatter_info_alter-variable_problems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
everything that I am seeing in the php for each manual says I need the foreach to be two different variables.