public static function remove_competency_from_plan($planid, $competencyid) {
        $params = self::validate_parameters(self::remove_competency_from_plan_parameters(), array(
            'planid' => $planid,
            'competencyid' => $competencyid,
        ));
        $plan = api::read_plan($params['planid']);
        self::validate_context($plan->get_context());

        return api::remove_competency_from_plan($params['planid'], $params['competencyid']);
    }
public static function remove_competency_from_plan($planid, $competencyid) {
        $params = self::validate_parameters(self::remove_competency_from_plan_parameters(), array(
            'planid' => $planid,
            'competencyid' => $competencyid,
        ));
        $plan = api::read_plan($params['planid']);
        self::validate_context($plan->get_context());

        return api::remove_competency_from_plan($params['planid'], $params['competencyid']);
    }
public static function remove_competency_from_plan ( $ planid , $ competencyid ) { $ params = self :: validate_parameters ( self :: remove_competency_from_plan_parameters ( ) , array ( 'planid' => $ planid , 'competencyid' => $ competencyid , ) ) ; $ plan = api :: read_plan ( $ params [ 'planid' ] ) ; self :: validate_context ( $ plan -> get_context ( ) ) ; return api :: remove_competency_from_plan ( $ params [ 'planid' ] , $ params [ 'competencyid' ] ) ; }
Remove a competency from plan.

@param int $planid Plan id.
@param int $competencyid Competency id.
@return int
Remove a competency from plan .