/**
 * 
 * Build the options page for mapping fields for the NPRML fields pushed with a post to local custom meta fields.
 */
function ds_npr_add_field_mapping_page()
{
    ?>
	<form action="options.php" method="post">
	<div>Use this page to map your custom WordPress Meta fields to fields sent the NPR API.  <P>Clicking the <strong>Use Custom Settings</strong> checkbox will enable these mappings.  If you wish to use the default mapping for a field, select &mdash; default &mdash; and we will use the obvious WordPress field. </div>
	<p>
	<div>Select for the Meta fields for the <strong> <?php 
    echo ds_npr_get_push_post_type();
    ?>
</strong> post type</div>
	<?php 
    settings_fields('ds_npr_api_push_mapping');
    //do_settings_section('ds_npr_api_push_mapping');
    do_settings_sections('ds_npr_api_push_mapping');
    ?>
  <input name="Submit" type="submit" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" />
  </form>
  <?php 
}
/**
 * callback for byline mapping
 */
function ds_npr_api_mapping_byline_callback()
{
    $push_post_type = ds_npr_get_push_post_type();
    $keys = ds_npr_get_post_meta_keys($push_post_type);
    ds_npr_show_keys_select('ds_npr_api_mapping_byline', $keys);
}