Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created April 7, 2014 16:40
Show Gist options
  • Select an option

  • Save objectivehtml/10023830 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/10023830 to your computer and use it in GitHub Desktop.
if(isset($this->EE->api_sc_channel_entries))
{
$this->EE->api_channel_form_channel_entries->errors[] = $error;
}
else if(isset($this->EE->api_sc_channel_entries))
{
$this->EE->api_sc_channel_entries->errors[] = $error;
}
else
{
foreach($geocode_fields as $field)
{
$this->EE->api_channel_entries->_set_error($error, 'field_id_'.$field->field_id);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment