Esempio n. 1
0
function nprstory_push_story_permissions_callback()
{
    $permissions_groups = nprstory_get_permission_groups();
    if (!empty($permissions_groups)) {
        nprstory_show_perms_select('ds_npr_story_default_permission', $permissions_groups);
        echo '<div> This is where you select the default permissions group to use when pushing stories to the NPR API.</div>';
    } else {
        echo '<div> You have no Permission Groups defined with the NPR API. </div>';
    }
}
Esempio n. 2
0
 function test_nprstory_show_perms_select()
 {
     $field_name = 'test_field';
     $this->expectOutputRegex('/<div><select id\\=' . $field_name . '.*/');
     nprstory_show_perms_select($field_name, array());
 }