Making WordPress.org

Changeset 1308


Ignore:
Timestamp:
02/25/2015 12:07:15 AM (10 years ago)
Author:
iandunn
Message:

Multi Event Sponsors: Add an accessor for a region's camera kit wrangler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-region.php

    r1307 r1308  
    116116
    117117    /**
     118     * Fetch the address of a camera kit wrangler for the given region.
     119     *
     120     * @param int $region_id
     121     *
     122     * @return bool
     123     */
     124    public static function get_camera_wranger_from_region( $region_id ) {
     125        $camera_wranglers = get_option( 'mes_region_camera_wranglers', array() );
     126
     127        return empty( $camera_wranglers[ $region_id ] ) ? false : $camera_wranglers[ $region_id ];
     128    }
     129
     130    /**
    118131     * Render the dropdown element with regions for the WordCamp Post Type plugin
    119132     *
Note: See TracChangeset for help on using the changeset viewer.