Preheat oven to 350 degrees. In an oven-proof, lidded saute pan, cook onions in olive oil over medium heat until softened. Add garlic, Ras el Hanout and chopped ginger. Cook another 2 to 3 min. Sprinkle chicken with salt and pepper. Remove onion mixture and put chicken in pan, adding more oil if necessary, and cook about 2 min. on each side. Return onion mixture to pan and add chicken stock and dried plums (or apricots). Cover pan and put in oven for 30 min., turning chicken halfway through cooking time.
Serve over rice or couscous.