You are here

function facebook_tracking_pixel_events_options in Facebook Tracking Pixel 7

Same name and namespace in other branches
  1. 8 facebook_tracking_pixel.module \facebook_tracking_pixel_events_options()

Return keyed array of standard events in a format for select boxes.

Return value

array

3 calls to facebook_tracking_pixel_events_options()
facebook_tracking_pixel_path_add_form in ./facebook_tracking_pixel.admin.path.inc
Form builder for tracking path add.
facebook_tracking_pixel_path_edit_form in ./facebook_tracking_pixel.admin.path.inc
Form builder for tracking path edit.
facebook_tracking_pixel_track_by_path_form in ./facebook_tracking_pixel.admin.path.inc
Form builder for track by path.

File

./facebook_tracking_pixel.module, line 472
facebook_tracking_pixel.module Facebook Tracking Module.

Code

function facebook_tracking_pixel_events_options() {
  $events = facebook_tracking_pixel_events();
  $options = [];
  foreach ($events as $key => $value) {
    $options[$key] = $value['name'];
  }
  return $options;
}